title: Unable to run Spark 1.0 SparkPi on HDP 2.0
body: <p>I stuck in issue with runing spark PI example on HDP 2.0</p>
  
  <p>I downloaded spark 1.0 pre-build from <a href="http://spark.apache.org/downloads.html" rel="nofollow">http://spark.apache.org/downloads.html</a> (for HDP2)
  The run example from spark web-site:</p>
  
  <pre><code> ./bin/spark-submit --class org.apache.spark.examples.SparkPi     --master yarn-cluster --num-executors 3 --driver-memory 2g --executor-memory 2g --executor-cores 1 ./lib/spark-examples-1.0.0-hadoop2.2.0.jar 2
  </code></pre>
  
  <p>I got error:</p>
  
  <blockquote>
    <p>Application application_1404470405736_0044 failed 3 times due to AM
    Container for appattempt_1404470405736_0044_000003 exited with
    exitCode: 1 due to: Exception from container-launch:
    org.apache.hadoop.util.Shell$ExitCodeException: at
    org.apache.hadoop.util.Shell.runCommand(Shell.java:464) at
    org.apache.hadoop.util.Shell.run(Shell.java:379) at
    org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:589)
    at
    org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:195)
    at
    org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:283)
    at
    org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:79)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262) at
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744) .Failing this attempt..
    Failing the application.</p>
    
    <p>Unknown/unsupported param List(--executor-memory, 2048,
    --executor-cores, 1, --num-executors, 3) Usage: org.apache.spark.deploy.yarn.ApplicationMaster [options]  Options:<br>
    --jar JAR_PATH       Path to your application's JAR file (required)   --class CLASS_NAME   Name of your application's main class (required) ...bla-bla-bla</p>
  </blockquote>
  
  <p>any ideas? how can I make it works?</p>