1、spark-defaults.conf:spark.eventLog开头的配置
spark.eventLog.enabled true
spark.eventLog.compress true
spark.eventLog.dir hdfs://ip:port/log/或者file:///tmp/spark-events
2、spark-env.sh中的SPARK_HISTORY_OPTS:spark.history开头的配置
export SPARK_HISTORY_OPTS="-Dspark.history.ui.port=18080 -Dspark.history.retainedApplications=300 -Dspark.history.ui.maxApplications=2000 -Dspark.history.fs.logDirectory=hdfs://ip:port/log/ -Dspark.history.fs.cleaner.enabled=true -Dspark.history.fs.cleaner.interval=1d -Dspark.history.fs.cleaner.maxAge=7d"