title: Can SparkContext.setCheckpointDir(hdfsPath) set same hdfsPath in different spark apps?
body: <p>As docs of:</p>
  
  <p><a href="https://spark.apache.org/docs/2.2.1/api/java/org/apache/spark/SparkContext.html#setCheckpointDir-java.lang.String-" rel="nofollow noreferrer">https://spark.apache.org/docs/2.2.1/api/java/org/apache/spark/SparkContext.html#setCheckpointDir-java.lang.String-</a></p>
  
  <p>SparkContext:</p>
  
  <blockquote>
  <pre><code>setCheckpointDir
  public void setCheckpointDir(String directory)
  Set the directory under which RDDs are going to be checkpointed.
  Parameters:
  directory - path to the directory where checkpoint files will be stored (must be HDFS path if running in cluster)
  </code></pre>
  </blockquote>
  
  <hr>
  
  <p>Questions :
  1) If different spark apps <code>SparkContext.setCheckpointDir(hdfsPath)</code> set the same hdfsPath, Is there any conflict?</p>
  
  <p>2) <em>If no conflict, the hdfsPath for CheckpointDir will clean automaticly?</em></p>