mridulm commented on code in PR #46571: URL: https://github.com/apache/spark/pull/46571#discussion_r1602414776
########## core/src/main/scala/org/apache/spark/SparkContext.scala: ########## @@ -374,6 +374,7 @@ class SparkContext(config: SparkConf) extends Logging { private[spark] def cleaner: Option[ContextCleaner] = _cleaner private[spark] var checkpointDir: Option[String] = None + config.getOption(CHECKPOINT_DIR.key).foreach(setCheckpointDir) Review Comment: We should do this only after `_hadoopConfiguration` has been initialized. Move it to after line [535 here](https://github.com/apache/spark/blob/f40ffe0f97a2e753878af8f8f47038272a1e1657/core/src/main/scala/org/apache/spark/SparkContext.scala#L535) ? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org