[ 
https://issues.apache.org/jira/browse/SPARK-11074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14954323#comment-14954323
 ] 

Kay Ousterhout commented on SPARK-11074:
----------------------------------------

One other similar example is that if you do 
saveAsHadoopFile("doesnotexist/myfile"), Spark does create the "doesnotexist' 
directory.

[~pwendell] pointed out that this is a security issue if we create the 
directory to be world-readable, so in any case I'd need to change my PR to make 
the parent directory to be readable only by the user who created it.

> Attempt to automatically create event log directory if it doesn't already 
> exist
> -------------------------------------------------------------------------------
>
>                 Key: SPARK-11074
>                 URL: https://issues.apache.org/jira/browse/SPARK-11074
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 1.5.1
>            Reporter: Kay Ousterhout
>            Assignee: Kay Ousterhout
>            Priority: Minor
>
> Right now, if the log where event logs are to be placed (spark.eventLog.dir) 
> doesn't already exist, the SparkContext fails to start.  We should try to 
> automatically create this directory.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to