You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Alex Luya <al...@gmail.com> on 2015/11/18 10:29:58 UTC

How to disable SparkUI programmatically?

I noticed that blow bug has been fixed:

 https://issues.apache.org/jira/browse/SPARK-2100

but how to do it(I mean disabling SparkUI) programmatically?

is it by sparkContext.setLocalProperty(?,?)?

and I checked blow link,can't figured out which property to set

http://localhost/spark/docs/configuration.html#spark-ui

Re: How to disable SparkUI programmatically?

Posted by Ted Yu <yu...@gmail.com>.
Refer to core/src/test/scala/org/apache/spark/ui/UISuite.scala , around
line 41:
    val conf = new SparkConf()
      .setMaster("local")
      .setAppName("test")
      .set("spark.ui.enabled", "true")
Cheers

On Wed, Nov 18, 2015 at 3:05 AM, Ted Yu <yu...@gmail.com> wrote:

> You can set spark.ui.enabled config parameter to false.
>
> Cheers
>
> On Nov 18, 2015, at 1:29 AM, Alex Luya <al...@gmail.com> wrote:
>
> I noticed that blow bug has been fixed:
>
>  https://issues.apache.org/jira/browse/SPARK-2100
>
> but how to do it(I mean disabling SparkUI) programmatically?
>
> is it by sparkContext.setLocalProperty(?,?)?
>
> and I checked blow link,can't figured out which property to set
>
> http://localhost/spark/docs/configuration.html#spark-ui
>
>

Re: How to disable SparkUI programmatically?

Posted by Ted Yu <yu...@gmail.com>.
You can set spark.ui.enabled config parameter to false. 

Cheers

> On Nov 18, 2015, at 1:29 AM, Alex Luya <al...@gmail.com> wrote:
> 
> I noticed that blow bug has been fixed:
> 
>  https://issues.apache.org/jira/browse/SPARK-2100
> but how to do it(I mean disabling SparkUI) programmatically?
> 
> is it by sparkContext.setLocalProperty(?,?)?
> 
> and I checked blow link,can't figured out which property to set
> 
> http://localhost/spark/docs/configuration.html#spark-ui