title: Spark's example throws FileNotFoundException in client mode
body: <p>I have: Ubuntu 14.04, Hadoop 2.7.7, Spark 2.2.0.</p>
  
  <p>I just installed everything.</p>
  
  <p>When I try to run the the Spark's example:</p>
  
  <pre><code>bin/spark-submit --deploy-mode client \
                 --class org.apache.spark.examples.SparkPi \
                 examples/jars/spark-examples_2.11-2.2.0.jar 10
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>INFO yarn.Client:
             client token: N/A
             diagnostics: Application application_1552490646290_0007 failed 2 times due to AM Container for
    appattempt_1552490646290_0007_000002 exited with  exitCode: -1000 For
    more detailed output, check application tracking
    page:<a href="http://ip-123-45-67-89:8088/cluster/app/application_1552490646290_0007" rel="nofollow noreferrer">http://ip-123-45-67-89:8088/cluster/app/application_1552490646290_0007</a> Then,
    click on links to logs of each attempt. Diagnostics: File
    file:/tmp/spark-f5879f52-6777-481a-8ecf-bbb55e376901/__spark_libs__6948713644593068670.zip
    does not exist java.io.FileNotFoundException: File
    file:/tmp/spark-f5879f52-6777-481a-8ecf-bbb55e376901/__spark_libs__6948713644593068670.zip
    does not exist</p>
  </blockquote>
  
  <pre><code> at org.apache.hadoop.fs.RawLocalFileSystem.deprecatedGetFileStatus(RawLocalFileSystem.java:611)
          at org.apache.hadoop.fs.RawLocalFileSystem.getFileLinkStatusInternal(RawLocalFileSystem.java:824)
          at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:601)
          at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:428)
          at org.apache.hadoop.yarn.util.FSDownload.copy(FSDownload.java:253)
          at org.apache.hadoop.yarn.util.FSDownload.access$000(FSDownload.java:63)
          at org.apache.hadoop.yarn.util.FSDownload$2.run(FSDownload.java:361)
          at org.apache.hadoop.yarn.util.FSDownload$2.run(FSDownload.java:359)
          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.Subject.doAs(Subject.java:421)
          at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1762)
          at org.apache.hadoop.yarn.util.FSDownload.call(FSDownload.java:358)
          at org.apache.hadoop.yarn.util.FSDownload.call(FSDownload.java:62)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:473)
          at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
          at java.lang.Thread.run(Thread.java:748)
  </code></pre>
  
  <p>I get the same error both in client mode and cluster mode.</p>