Skip to content

Commit ecfc4e7

Browse files
committed
added check before setting checkpoint directory
1 parent 45a2137 commit ecfc4e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spark/core/src/main/java/zingg/spark/core/executor/ZinggSparkContext.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ public void init(IZinggLicense license)
7575
JavaSparkContext.jarOfClass(IZingg.class);
7676
LOG.debug("Context " + ctx.toString());
7777
//initHashFns();
78-
ctx.setCheckpointDir("/tmp/checkpoint");
78+
if (!ctx.getCheckpointDir().isPresent()) {
79+
ctx.setCheckpointDir("/tmp/checkpoint");
80+
}
7981
setUtils();
8082
}
8183
}

0 commit comments

Comments
 (0)