在/tmp下建立目录 spark-events
./sbin/start-history-server.sh
修改配置文件./conf/spark-defaults.conf
添加这一行:spark.eventLog.enabled true
运行脚本 ./sbin/start-history-server.sh
查看地址http://localhost:18080
./sbin/start-history-server.sh
修改配置文件./conf/spark-defaults.conf
添加这一行:spark.eventLog.enabled true
运行脚本 ./sbin/start-history-server.sh
查看地址http://localhost:18080

本文介绍如何在/tmp目录下创建spark-events文件夹,并通过start-history-server.sh脚本启动Spark历史服务器。用户需要修改spark-defaults.conf配置文件启用事件记录功能。完成配置后,运行指定脚本即可启动服务器并访问http://localhost:18080查看。
3953

被折叠的 条评论
为什么被折叠?



