java.io.IOException: Stream closed

Apache's JIRA Issue Tracker | Alex Liu | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Why did Worker kill executor?

    Stack Overflow | 1 year ago | Mr.choi
    java.io.IOException: Stream closed
  2. 0

    We find this issue still exists in 1.3.1 {code} ERROR [Thread-6] 2015-07-28 22:49:57,653 SparkWorker-0 ExternalLogger.java:96 - Error writing stream to file /var/lib/spark/worker/worker-0/app-20150728224954-0003/0/stderr ERROR [Thread-6] 2015-07-28 22:49:57,653 SparkWorker-0 ExternalLogger.java:96 - java.io.IOException: Stream closed ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.BufferedInputStream.read1(BufferedInputStream.java:283) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.BufferedInputStream.read(BufferedInputStream.java:345) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,654 SparkWorker-0 ExternalLogger.java:96 - at java.io.FilterInputStream.read(FilterInputStream.java:107) ~[na:1.8.0_40] ERROR [Thread-6] 2015-07-28 22:49:57,655 SparkWorker-0 ExternalLogger.java:96 - at org.apache.spark.util.logging.FileAppender.appendStreamToFile(FileAppender.scala:70) ~[spark-core_2.10-1.3.1.1.jar:1.3.1.1] ERROR [Thread-6] 2015-07-28 22:49:57,655 SparkWorker-0 ExternalLogger.java:96 - at org.apache.spark.util.logging.FileAppender$$anon$1$$anonfun$run$1.apply$mcV$sp(FileAppender.scala:39) [spark-core_2.10-1.3.1.1.jar:1.3.1.1] ERROR [Thread-6] 2015-07-28 22:49:57,655 SparkWorker-0 ExternalLogger.java:96 - at org.apache.spark.util.logging.FileAppender$$anon$1$$anonfun$run$1.apply(FileAppender.scala:39) [spark-core_2.10-1.3.1.1.jar:1.3.1.1] ERROR [Thread-6] 2015-07-28 22:49:57,655 SparkWorker-0 ExternalLogger.java:96 - at org.apache.spark.util.logging.FileAppender$$anon$1$$anonfun$run$1.apply(FileAppender.scala:39) [spark-core_2.10-1.3.1.1.jar:1.3.1.1] ERROR [Thread-6] 2015-07-28 22:49:57,655 SparkWorker-0 ExternalLogger.java:96 - at org.apache.spark.util.Utils$.logUncaughtExceptions(Utils.scala:1618) [spark-core_2.10-1.3.1.1.jar:1.3.1.1] ERROR [Thread-6] 2015-07-28 22:49:57,656 SparkWorker-0 ExternalLogger.java:96 - at org.apache.spark.util.logging.FileAppender$$anon$1.run(FileAppender.scala:38) [spark-core_2.10-1.3.1.1.jar:1.3.1.1] {code} at https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/deploy/worker/ExecutorRunner.scala#L159 The process auto shuts down, but the log appenders are still running, which causes the error log messages.

    Apache's JIRA Issue Tracker | 2 years ago | Alex Liu
    java.io.IOException: Stream closed
  3. 0

    NullPointerException in Docker run-example.sh

    GitHub | 2 years ago | tcfuji
    java.io.IOException: Stream closed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spark: IOException, Stream closed during logging

    Stack Overflow | 1 year ago | xiaohan2012
    java.io.IOException: Stream closed

  1. poroszd 1 times, last 2 years ago
  2. Piz 1 times, last 10 months ago
11 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    Stream closed

    at java.io.BufferedInputStream.getBufIfOpen()
  2. Java RT
    FilterInputStream.read
    1. java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
    2. java.io.BufferedInputStream.read1(BufferedInputStream.java:283)
    3. java.io.BufferedInputStream.read(BufferedInputStream.java:345)
    4. java.io.FilterInputStream.read(FilterInputStream.java:107)
    4 frames
  3. Spark
    FileAppender$$anon$1.run
    1. org.apache.spark.util.logging.FileAppender.appendStreamToFile(FileAppender.scala:70)
    2. org.apache.spark.util.logging.FileAppender$$anon$1$$anonfun$run$1.apply$mcV$sp(FileAppender.scala:39)
    3. org.apache.spark.util.logging.FileAppender$$anon$1$$anonfun$run$1.apply(FileAppender.scala:39)
    4. org.apache.spark.util.logging.FileAppender$$anon$1$$anonfun$run$1.apply(FileAppender.scala:39)
    5. org.apache.spark.util.Utils$.logUncaughtExceptions(Utils.scala:1699)
    6. org.apache.spark.util.logging.FileAppender$$anon$1.run(FileAppender.scala:38)
    6 frames