title: Not able to run Spark job on YARN cluster
body: <p>I have a simple hadoop cluster on top of which Spark runs (that is Spark uses YARN as cluster manager).</p>
  
  <p>I am using Hadoop 2.7; scala 2.112.1; spark 2.1.0 and jdk 8.</p>
  
  <p>Now, when I submit a job, it fails, with the message below:</p>
  
  <pre><code>17/04/06 23:57:55 INFO yarn.Client: Application report for application_1491534363989_0004 (state: ACCEPTED)
  17/04/06 23:57:56 INFO yarn.Client: Application report for application_1491534363989_0004 (state: FAILED)
  17/04/06 23:57:56 INFO yarn.Client:
       client token: N/A
       diagnostics: Application application_1491534363989_0004 failed 2 times due to AM Container for appattempt_1491534363989_0004_000002 exited with  exitCode: 15
  For more detailed output, check application tracking page:http://rm100.hadoop.cluster:8088/cluster/app/application_1491534363989_0004Then, click on links to logs of each attempt.
  Diagnostics: Exception from container-launch.
  Container id: container_1491534363989_0004_02_000001
  Exit code: 15
  </code></pre>
  
  <p>Are there any issues with JDK 8?</p>
  
  <h1><strong>Update</strong></h1>
  
  <p>When I run the same program using JDK 7, it is working fine. So my question is: Is Spark, scala , hadoop having any issues with JDK 8?</p>