配置 spark-defaults.conf
spark.eventLog.enabled truespark.eventLog.dir file:///home/spark-2.1.1-bin-hadoop2.7/history_logspark.history.update.interval 1spark.history.retainedApplications 50spark.history.ui.port 18080
然后启动
sbin/start-history-server.sh /home/spark-2.1.1-bin-hadoop2.7/history_log