Github user witgo commented on the pull request:

    https://github.com/apache/spark/pull/1387#issuecomment-48985219
  
    I agree with your point. 
    But when a memory overflow exception is thrown .Error is the Spark given:
    ```
    org.apache.spark.SparkException: Job aborted due to stage failure: Task 
9.1:0 failed 4 times, most recent failure: Exception failure in TID 969 on host 
10dian73.domain.test: java.io.FileNotFoundException: 
/yarn/nm/usercache/spark/appcache/application_1404728465401_0070/spark-local-20140715103235-ffda/2e/merged_shuffle_4_85_0
 (No such file or directory)
            java.io.FileOutputStream.open(Native Method)
            java.io.FileOutputStream.<init>(FileOutputStream.java:221)
            
org.apache.spark.storage.DiskBlockObjectWriter.open(BlockObjectWriter.scala:116)
            
org.apache.spark.storage.DiskBlockObjectWriter.write(BlockObjectWriter.scala:177)
            
org.apache.spark.shuffle.hash.HashShuffleWriter$$anonfun$write$1.apply(HashShuffleWriter.scala:59)
            
org.apache.spark.shuffle.hash.HashShuffleWriter$$anonfun$write$1.apply(HashShuffleWriter.scala:57)
            scala.collection.Iterator$class.foreach(Iterator.scala:727)
            scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
            
org.apache.spark.shuffle.hash.HashShuffleWriter.write(HashShuffleWriter.scala:57)
            
org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:147)
            
org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:97)
            org.apache.spark.scheduler.Task.run(Task.scala:51)
            
org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:187)
            
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            java.lang.Thread.run(Thread.java:744)
    
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to