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

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

Adrian Petrescu created SPARK-17437:
---------------------------------------

             Summary: 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