title: Running Spark on YARN in yarn-cluster mode: Where does the console output go?
body: <p>I followed this page and ran the SparkPi example application on YARN in yarn-cluster mode.</p>
  
  <p><a href="http://spark.apache.org/docs/latest/running-on-yarn.html">http://spark.apache.org/docs/latest/running-on-yarn.html</a></p>
  
  <p>I don't see the output of the program at the end (which is the result of the computation in this case).  When I run it in the yarn-client mode (--master yarn-client), I see an output like this:</p>
  
  <blockquote>
    <p>Pi is roughly 3.138796</p>
  </blockquote>
  
  <p>Where does the standard out go in the yarn-cluster mode?</p>