[jira] [Commented] (SPARK-33017) PySpark Context should have getCheckpointDir() method
[ https://issues.apache.org/jira/browse/SPARK-33017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17209269#comment-17209269 ] Apache Spark commented on SPARK-33017: -- User 'HyukjinKwon' has created a pull request for this issue: https://github.com/apache/spark/pull/29960 > PySpark Context should have getCheckpointDir() method > - > > Key: SPARK-33017 > URL: https://issues.apache.org/jira/browse/SPARK-33017 > Project: Spark > Issue Type: Improvement > Components: PySpark >Affects Versions: 3.1.0 >Reporter: Nicholas Chammas >Assignee: Paul Reidy >Priority: Minor > Fix For: 3.1.0 > > > To match the Scala API, PySpark should offer a direct way to get the > checkpoint dir. > {code:scala} > scala> spark.sparkContext.setCheckpointDir("/tmp/spark/checkpoint") > scala> spark.sparkContext.getCheckpointDir > res3: Option[String] = > Some(file:/tmp/spark/checkpoint/34ebe699-bc83-4c5d-bfa2-50451296cf87) > {code} > Currently, the only was to do that from PySpark is via the underlying Java > context: > {code:python} > >>> spark.sparkContext.setCheckpointDir('/tmp/spark/checkpoint/') > >>> sc._jsc.sc().getCheckpointDir().get() > 'file:/tmp/spark/checkpoint/ebf0fab5-edbc-42c2-938f-65d5e599cf54' > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Commented] (SPARK-33017) PySpark Context should have getCheckpointDir() method
[ https://issues.apache.org/jira/browse/SPARK-33017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17205148#comment-17205148 ] Apache Spark commented on SPARK-33017: -- User 'reidy-p' has created a pull request for this issue: https://github.com/apache/spark/pull/29918 > PySpark Context should have getCheckpointDir() method > - > > Key: SPARK-33017 > URL: https://issues.apache.org/jira/browse/SPARK-33017 > Project: Spark > Issue Type: Improvement > Components: PySpark >Affects Versions: 3.1.0 >Reporter: Nicholas Chammas >Priority: Minor > > To match the Scala API, PySpark should offer a direct way to get the > checkpoint dir. > {code:scala} > scala> spark.sparkContext.setCheckpointDir("/tmp/spark/checkpoint") > scala> spark.sparkContext.getCheckpointDir > res3: Option[String] = > Some(file:/tmp/spark/checkpoint/34ebe699-bc83-4c5d-bfa2-50451296cf87) > {code} > Currently, the only was to do that from PySpark is via the underlying Java > context: > {code:python} > >>> spark.sparkContext.setCheckpointDir('/tmp/spark/checkpoint/') > >>> sc._jsc.sc().getCheckpointDir().get() > 'file:/tmp/spark/checkpoint/ebf0fab5-edbc-42c2-938f-65d5e599cf54' > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org