Github user tdas commented on a diff in the pull request:

    https://github.com/apache/spark/pull/6968#discussion_r33620460
  
    --- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
    @@ -1897,6 +1897,16 @@ class SparkContext(config: SparkConf) extends 
Logging with ExecutorAllocationCli
        * be a HDFS path if running on a cluster.
        */
       def setCheckpointDir(directory: String) {
    +
    +    // If we are running on a cluster, log a warning if the directory is 
local.
    +    // Otherwise, the driver may attempt to reconstruct the checkpointed 
RDD from
    +    // its own local file system, which is incorrect because the 
checkpoint files
    +    // are actually on the executor machines.
    +    if (!isLocal && Utils.nonLocalPaths(directory).isEmpty) {
    +      logWarning("Checkpoint directory must be non-local " +
    --- End diff --
    
    awesome!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to