Running Spark on YARN in yarn-cluster mode: Where does the console output go?

前端 未结 1 1842
终归单人心
终归单人心 2021-02-08 00:49

I followed this page and ran the SparkPi example application on YARN in yarn-cluster mode.

http://spark.apache.org/docs/latest/running-on-yarn.html

I don\'t see

1条回答
  •  长情又很酷
    2021-02-08 01:11

    After much poking around, I found this in the spark-0.9.0 doc.

    Examine the output (replace $YARN_APP_ID in the following with the "application identifier" output by the previous command) (Note: YARN_APP_LOGS_DIR is usually /tmp/logs or $HADOOP_HOME/logs/userlogs depending on the Hadoop version.)

    $ cat $YARN_APP_LOGS_DIR/$YARN_APP_ID/container*_000001/stdout

    Pi is roughly 3.13794

    I wish they put this instruction in the 1.1.0 documentation too.

    0 讨论(0)
提交回复
热议问题