Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/6968#discussion_r33110886
--- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
@@ -1897,6 +1897,13 @@ 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, require the path to be non-local
+ if (!isLocal && Utils.nonLocalPaths(directory).isEmpty) {
+ throw new IllegalArgumentException(
+ "Checkpoint directory must be non-local if Spark is running on a
cluster: " + directory)
+ }
--- End diff --
This should be the only real change in functionality.
---
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]