gpt4 book ai didi

java - Spark Worker 节点自动停止

转载 作者:塔克拉玛干 更新时间:2023-11-03 03:49:55 31 4
gpt4 key购买 nike

我正在运行 Spark Standalone 集群并在提交应用程序时,spark 驱动程序停止并出现以下错误。

16/01/12 23:26:14 INFO Worker: Asked to kill executor app-20160112232613-0012/0
16/01/12 23:26:14 INFO ExecutorRunner: Runner thread for executor app-20160112232613-0012/0 interrupted
16/01/12 23:26:14 INFO ExecutorRunner: Killing process!
16/01/12 23:26:14 ERROR FileAppender: Error writing stream to file /spark/spark-1.4.1/work/app-20160112232613-0012/0/stderr
java.io.IOException: Stream closed
at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:283)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at org.apache.spark.util.logging.FileAppender.appendStreamToFile(FileAppender.scala:70)
at org.apache.spark.util.logging.FileAppender$$anon$1$$anonfun$run$1.apply$mcV$sp(FileAppender.scala:39)
at org.apache.spark.util.logging.FileAppender$$anon$1$$anonfun$run$1.apply(FileAppender.scala:39)
at org.apache.spark.util.logging.FileAppender$$anon$1$$anonfun$run$1.apply(FileAppender.scala:39)
at org.apache.spark.util.Utils$.logUncaughtExceptions(Utils.scala:1772)
at org.apache.spark.util.logging.FileAppender$$anon$1.run(FileAppender.scala:38)
16/01/12 23:26:14 INFO Worker: Executor app-20160112232613-0012/0 finished with state KILLED exitStatus 143
16/01/12 23:26:14 INFO Worker: Cleaning up local directories for application app-20160112232613-0012

我是 Spark 及其处理的新手。请帮助我。

最佳答案

错误不是由 java.io.IOException 引起的,因为您可以清楚地看到 16/01/12 23:26:14 INFO Worker: Asked to kill executor app-20160112232613-0012/0。当 spark 尝试写入日志文件时会引发此异常,您还将在其中观察错误的原因。

即使您使用 root 权限运行 spark-submit,写入文件的也是 spark 用户。我猜你正在笔记本电脑上运行。尝试在您的 spark 文件夹上运行 sudo chmod -R 777

关于java - Spark Worker 节点自动停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34761274/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com