Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

HDP 2,3.4- Running jobs is not getting displayed in Spark UI

avatar
Expert Contributor

Hi,

I am running HDP-2.3.4 cluster on EC2.When I go to http://ec2-xx-xx-xxx-xxx.ap-southeast-1.compute.amazonaws.com:4041/jobs/ ,it doesnt display any currently running jobs.

Whereas in spark-shell ,it shows the spark UI started at 4041

16/02/14 21:45:13 INFO AbstractConnector: Started SelectChannelConnector@0.0.0.0:4041
16/02/14 21:45:13 INFO Utils: Successfully started service 'SparkUI' on port 4041.
16/02/14 21:45:13 INFO SparkUI: Started SparkUI at http://xxx.xx.xx.xxx:4041

But if I go to history server at It shows all the old jobs ran in the past .

I am new bee to Spark.

P.S. Attaching the screen shots of Spark Web UI and History UI

2127-spark-history-server.png

Thanks,

Divya


nosparkjobsrunning.png
1 ACCEPTED SOLUTION

avatar
@Divya Gehlot

Spark History only shows your job after it's finished.

To access Spark UI while your job is running on YARN, got to YARN UI (usually port :8088) and click on Application Master link of your job.

View solution in original post

10 REPLIES 10

avatar
Contributor

Hope this will help anyone:

Add or modify below properties

Ambari > Spark > Configs > Custom spark-defaults

spark.eventLog.enabled = true

spark.history.fs.logDirectory = hdfs://<fs.defaultFS>/<directory-to-your-spark-logs>

Ambari > Spark > Configs > Advanced spark-defaults

spark.history.provider = org.apache.spark.deploy.history.FsHistoryProvider