Spark UI on CloudxLab

Hi @Jeevankrishna_Rao,

I have updated my answer to include new URLs and ports.

By the way, you can find the spark history server URLs in Ambari also.

Hope this helps.

Thanks

Hi @abhinav,
I tried what you have suggested. But unable to open spark web UI. Please help.

My spark shell started at 4045 port. and I am working on https://e.cloudxlab.com/. So i tried with http://e.cloudxlab.com:4045/...error message is unable to connect.

[vinpaluvuri5873@cxln4 ~]$ spark-shell
SPARK_MAJOR_VERSION is set to 2, using Spark2
Setting default log level to “WARN”.
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
19/08/02 03:02:07 WARN Utils: Service ‘SparkUI’ could not bind on port 4040. Attempting port 4041.
19/08/02 03:02:07 WARN Utils: Service ‘SparkUI’ could not bind on port 4041. Attempting port 4042.
19/08/02 03:02:07 WARN Utils: Service ‘SparkUI’ could not bind on port 4042. Attempting port 4043.
19/08/02 03:02:07 WARN Utils: Service ‘SparkUI’ could not bind on port 4043. Attempting port 4044.
19/08/02 03:02:07 WARN Utils: Service ‘SparkUI’ could not bind on port 4044. Attempting port 4045.
Spark context Web UI available at http://10.142.1.4:4045

Regards,
Vinod.

Hi,
I am able to open the spark UI.

Please note that the IP address displayed is privated. From “My Lab” I found the corresponding public name which e.cloudxlab.com.

Then, I open the UI using the public name:

But ip address is not in the mapped list (https://cloudxlab.com/my-lab#ip-mappings)
Here i attached both in one screenshots(due to limitation).
Can you let me know how to figure out spark web ui

Hi,

Can you please check now? I have added the IP mapping

I see new ip which is not in mapping. Is there anyway we figure out all domain names for corresponding ip address. Here i am attaching screenshot.

I have see ip address(different one) but spark UI is not showing. Please find the attached screenshot.
Can you please let me know how to access

Hello All,

Thanks for the blog for accessing Web UI of Spark.
I have one question i.e. while we are creating rdd’s and performing transformations and actions on it through shell, the jobs can be viewed but why the jobs cannot be seen when we are doing it through Jupyter notebook?

You just have to find out the port on which sparkUI is running. It is in the some environment variable that you can find from sc or spark entry point.

Hi @abhinav,

The UI is working when using spark-shell, but not working with spark-shell --master yarn. I tried all the ways mentioned in this thread.
Could you please help at the earliest.

Thanks

the UI link redirects to such link “http://cxln2.c.thelab-240901.internal:8088/proxy/redirect/application_1618218190443_4817/” and it doesn’t work

I am able to access sparkUI. Just need to be careful about some petty things:

Am adding to Sandeep’s answer:


Please note that the IP address displayed is privated. From “My Lab” I found the corresponding public name which e.cloudxlab.com

Then, I open the UI using the public name:

NOTE:
(1) the URL should be http, not https
(2) in the link, the port number should be preceded by :, not a ‘/’. For example, it should be something like:

http://e.cloudxlab.com:4046/environment/

I am not able to access spark UI. I followed all the suggestions mention in this forum but none of them work.
http://e.cloudxlab.com:4044/

I just tried. It worked for me. Could you follow the instructions given by Vagdevi?

I am attaching the screen shot for your reference.

1 Like

Team, can you be little swift in your replies. I have this problem for sometime now and stuck with my practical.

I am attaching the screen shot for your reference. Can you please look into this issue on a priority basis, I can not move ahead with my practical without having sparkUI.

I am unable to access spark Ui

Hi,

You need to follow the following steps for it:

  1. Open spark shell by running:
spark-shell
  1. It will display some logs while starting the shell. In that there will be a log at fourth number like: ‘Spark context Web UI available at’. There will be mentioned a URL with the port number. You need to copy that port number and then check your lab URL.

  2. Your lab URL will be either e.cloudxlab.com or f.cloudxlab.com. If it’s f, then you need to open:http://f.cloudxlab.com:port_number

If it’s e, then: http://e.cloudxlab.com:port_number.

The port_number will be one from your spark session.