关注 spark技术分享,
撸spark源码 玩spark最佳实践

Checking Status

Checking Status of Spark Standalone

jps

Since you’re using Java tools to run Spark, use jps -lm as the tool to get status of any JVMs on a box, Spark’s ones including. Consult jps documentation for more details beside -lm command-line options.

If you however want to filter out the JVM processes that really belong to Spark you should pipe the command’s output to OS-specific tools like grep.

spark-daemon.sh status

You can also check out ./sbin/spark-daemon.sh status.

When you start Spark Standalone using scripts under sbin, PIDs are stored in /tmp directory by default. ./sbin/spark-daemon.sh status can read them and do the “boilerplate” for you, i.e. status a PID.

赞(0) 打赏
未经允许不得转载:spark技术分享 » Checking Status
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏