java.io.FileNotFoundException: File s3n://bucket-name/file-path does not exist.

Stack Overflow | dmreshet | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    SparkContext addFile causes FileNotFoundException

    Stack Overflow | 6 months ago | dmreshet
    java.io.FileNotFoundException: File s3n://bucket-name/file-path does not exist.

    Root Cause Analysis

    1. java.io.FileNotFoundException

      File s3n://bucket-name/file-path does not exist.

      at com.amazon.ws.emr.hadoop.fs.s3n.S3NativeFileSystem.listStatus()
    2. com.amazon.ws
      EmrFileSystem.listStatus
      1. com.amazon.ws.emr.hadoop.fs.s3n.S3NativeFileSystem.listStatus(S3NativeFileSystem.java:945)
      2. com.amazon.ws.emr.hadoop.fs.s3n.S3NativeFileSystem.listStatus(S3NativeFileSystem.java:887)
      3. com.amazon.ws.emr.hadoop.fs.EmrFileSystem.listStatus(EmrFileSystem.java:343)
      3 frames
    3. Spark
      Executor$$anonfun$org$apache$spark$executor$Executor$$updateDependencies$3.apply
      1. org.apache.spark.util.Utils$.fetchHcfsFile(Utils.scala:596)
      2. org.apache.spark.util.Utils$.doFetchFile(Utils.scala:566)
      3. org.apache.spark.util.Utils$.fetchFile(Utils.scala:356)
      4. org.apache.spark.executor.Executor$$anonfun$org$apache$spark$executor$Executor$$updateDependencies$3.apply(Executor.scala:393)
      5. org.apache.spark.executor.Executor$$anonfun$org$apache$spark$executor$Executor$$updateDependencies$3.apply(Executor.scala:390)
      5 frames
    4. Scala
      TraversableLike$WithFilter.foreach
      1. scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
      2. scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)
      3. scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)
      4. scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:226)
      5. scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:39)
      6. scala.collection.mutable.HashMap.foreach(HashMap.scala:98)
      7. scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
      7 frames
    5. Spark
      Executor$TaskRunner.run
      1. org.apache.spark.executor.Executor.org$apache$spark$executor$Executor$$updateDependencies(Executor.scala:390)
      2. org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:193)
      2 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames