spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Petrescu (JIRA)" <>
Subject [jira] [Created] (SPARK-17437) uiWebUrl is not accessible to JavaSparkContext or pyspark.SparkContext
Date Wed, 07 Sep 2016 20:07:20 GMT
Adrian Petrescu created SPARK-17437:

             Summary: uiWebUrl is not accessible to JavaSparkContext or pyspark.SparkContext
                 Key: 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message