Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

SPARK starts the history task view

Shulou Source: shulou.com Published: 2022-06-03 02:44:02 10月04日 Update

The following configuration is required for viewing SPARK history tasks:

Modify spark-defaults.conf configuration file

Spark.eventLog.enabled true

Spark.eventLog.dir hdfs://192.168.9.110:9000/eventLogs

Spark.eventLog.compress true

Modify spark-env.sh configuration file

Export SPARK_HISTORY_OPTS= "- Dspark.history.ui.port=18080-Dspark.history.retainedApplications=3-Dspark.history.fs.logDirectory=hdfs://DEV-HADOOP-01:9000/sparkHistoryLogs"

Both spark.eventLog.dir and SPARK_HISTORY_OPTS use hdfs to store log information for historical tasks in the above two configurations. So you need to create these two directories hdfs://192.168.9.110:9000/eventLogs and hdfs://DEV-HADOOP-01:9000/sparkHistoryLogs in hdfs ahead of time.

Enter the bin directory command of hadoop: cd / data/server/hadoop-2.6.0/bin

New hdfs://192.168.9.110:9000/eventLogs command:. / hadoop dfs-mkdir / eventLogs

New hdfs://DEV-HADOOP-01:9000/sparkHistoryLogs command:. / hadoop dfs-mkdir / sparkHistoryLogs

Restart the spark cluster

Start the history task process

Sbin/start-history-server.sh

The history task process initiates verification

Execute the jps command and the HistoryServer process appears

View Historical Task Web UI

Http://192.168.9.110:18080/

Tags: Tasks history commands configuration processes two files directories information logs clusters Zhongxin storage verification Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology MySQL OPPO Reno Shulou Tech Info macOS