You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/09/07 20:12:20 UTC

[jira] [Commented] (SPARK-17437) uiWebUrl is not accessible to JavaSparkContext or pyspark.SparkContext

    [ https://issues.apache.org/jira/browse/SPARK-17437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15471667#comment-15471667 ] 

Apache Spark commented on SPARK-17437:
--------------------------------------

User 'apetresc' has created a pull request for this issue:
https://github.com/apache/spark/pull/15000

> uiWebUrl is not accessible to JavaSparkContext or pyspark.SparkContext
> ----------------------------------------------------------------------
>
>                 Key: SPARK-17437
>                 URL: https://issues.apache.org/jira/browse/SPARK-17437
>             Project: Spark
>          Issue Type: Improvement
>          Components: Java API, PySpark, Web UI
>    Affects Versions: 2.0.0
>            Reporter: Adrian Petrescu
>
> The Scala version of {{SparkContext}} has a handy field called {{uiWebUrl}} that tells you which URL the SparkUI spawned by that instance lives at. This is often very useful because the value for {{spark.ui.port}} in the config is only a suggestion; if that port number is taken by another Spark instance on the same machine, Spark will just keep incrementing the port until it finds a free one. So, on a machine with a lot of running PySpark instances, you often have to start trying all of them one-by-one until you find your application name.
> Scala users have a way around this with {{uiWebUrl}} but Java and Python users do not. This ticket (and the attached PR) fix this in the most straightforward way possible, simply propagating this field through the {{JavaSparkContext}} and into pyspark through the Java gateway.
> Please let me know if any additional documentation/testing is needed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org