title: Spark monitoring REST API in YARN cluster mode
body: <p>When Spark is deployed in YARN cluster mode, how should I issue the Spark monitoring REST API calls <a href="http://spark.apache.org/docs/latest/monitoring.html" rel="nofollow">http://spark.apache.org/docs/latest/monitoring.html</a> ?</p>
  
  <p>Does YARN have an API that takes the REST call for example (I already know the app-id)</p>
  
  <p><a href="http://localhost:4040/api/v1/applications/[app-id]/jobs" rel="nofollow">http://localhost:4040/api/v1/applications/[app-id]/jobs</a></p>
  
  <p>, proxies it to the correct driver port, and returns the JSON back to me? By "me" I mean my client.</p>
  
  <p>Assume (or already by design) I cannot directly talk to the driver machine due to security reasons.</p>