Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the Spark UI on Google Dataproc?

What port should I use to access the Spark UI on Google Dataproc?

I tried port 4040 and 7077 as well as a bunch of other ports I found using netstat -pln

Firewall is properly configured.

like image 802
BAR Avatar asked Oct 18 '15 00:10

BAR


People also ask

How do I find my Spark UI?

If you are running the Spark application locally, Spark UI can be accessed using the http://localhost:4040/ . Spark UI by default runs on port 4040 and below are some of the additional UI's that would be helpful to track Spark application. Note: To access these URLs, Spark application should in running state.

Is Google Dataproc built on Spark?

Dataproc is built on open source platforms, including: Apache Hadoop -- supports the distributed processing of large data sets across clusters. Apache Spark – serves as the engine for fast, large-scale data processing. Apache Pig -- analyzes large data sets.


2 Answers

Dataproc runs Spark on top of YARN, so you won't find the typical "Spark standalone" ports; instead, when running a Spark job, you can visit port 8088 which will show you the YARN ResourceManager's main page. Any running Spark jobs will be accessible through the Application Master link on that page. The Spark Application Master's page looks the same as the familiar Spark-standalone landing page that you would normally find on port 8080 for default Spark setups.

Since workers check in over the internal network, YARN's links will be using cluster-internal hostnames (the hostnames should include your Dataproc cluster name as a prefix), but this means if you're accessing from the outside network, the links may not work at first; you have to replace the hostname with the external IP address if you're using the firewall-based approach.

An easier experience will be to use the SOCKS proxy approach as explained here: https://cloud.google.com/dataproc/cluster-web-interfaces

In that case, simply using gcloud compute ssh to run a lightweight local socks proxy and then opening a browser pointed at that will let you click all the YARN links as normal.

like image 116
Dennis Huo Avatar answered Sep 23 '22 11:09

Dennis Huo


When following the instructions in Dennis's answer, I found that I could not connect to ports 8080 or 8088 for dataproc image v1.0.

The open ports on the master node suggested to use 18080, which I did following the documentation for port 18080 and voilá: Access to webui.

like image 35
Frank Avatar answered Sep 21 '22 11:09

Frank