spark程序运行报错问题,求助

问题描述

16/03/0317:36:03WARNTaskSetManager:Losttask0.0instage0.0(TID0,localhost):java.net.NoRouteToHostException:Noroutetohostjava.net.PlainSocketImpl.socketConnect(NativeMethod)java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)java.net.Socket.connect(Socket.java:579)sun.net.NetworkClient.doConnect(NetworkClient.java:175)sun.net.www.http.HttpClient.openServer(HttpClient.java:432)sun.net.www.http.HttpClient.openServer(HttpClient.java:527)sun.net.www.http.HttpClient.<init>(HttpClient.java:211)sun.net.www.http.HttpClient.New(HttpClient.java:308)sun.net.www.http.HttpClient.New(HttpClient.java:326)sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:997)sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:933)sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:851)org.apache.spark.util.Utils$.fetchFile(Utils.scala:375)org.apache.spark.executor.Executor$$anonfun$org$apache$spark$executor$Executor$$updateDependencies$6.apply(Executor.scala:325)org.apache.spark.executor.Executor$$anonfun$org$apache$spark$executor$Executor$$updateDependencies$6.apply(Executor.scala:323)scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:226)scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:39)scala.collection.mutable.HashMap.foreach(HashMap.scala:98)scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)org.apache.spark.executor.Executor.org$apache$spark$executor$Executor$$updateDependencies(Executor.scala:323)org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:158)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)java.lang.Thread.run(Thread.java:745)16/03/0317:36:03INFOTaskSetManager:Startingtask0.1instage0.0(TID1,localhost,PROCESS_LOCAL,1240bytes)16/03/0317:36:06INFOTaskSetManager:Losttask0.1instage0.0(TID1)onexecutorlocalhost:java.net.NoRouteToHostException(Noroutetohost)[duplicate1]16/03/0317:36:06INFOTaskSetManager:Startingtask0.2instage0.0(TID2,localhost,PROCESS_LOCAL,1240bytes)16/03/0317:36:09INFOTaskSetManager:Losttask0.2instage0.0(TID2)onexecutorlocalhost:java.net.NoRouteToHostException(Noroutetohost)[duplicate2]16/03/0317:36:09INFOTaskSetManager:Startingtask0.3instage0.0(TID3,localhost,PROCESS_LOCAL,1240bytes)16/03/0317:36:12INFOTaskSetManager:Losttask0.3instage0.0(TID3)onexecutorlocalhost:java.net.NoRouteToHostException(Noroutetohost)[duplicate3]16/03/0317:36:12ERRORTaskSetManager:Task0instage0.0failed4times;abortingjob16/03/0317:36:12INFOTaskSchedulerImpl:RemovedTaskSet0.0,whosetaskshaveallcompleted,frompool16/03/0317:36:12INFOTaskSchedulerImpl:Cancellingstage016/03/0317:36:12INFODAGScheduler:Failedtorunfirstattest.scala:15Exceptioninthread"main"org.apache.spark.SparkException:Jobabortedduetostagefailure:Task0instage0.0failed4times,mostrecentfailure:Losttask0.3instage0.0(TID3,localhost):java.net.NoRouteToHostException:Noroutetohostjava.net.PlainSocketImpl.socketConnect(NativeMethod)java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)java.net.Socket.connect(Socket.java:579)sun.net.NetworkClient.doConnect(NetworkClient.java:175)sun.net.www.http.HttpClient.openServer(HttpClient.java:432)sun.net.www.http.HttpClient.openServer(HttpClient.java:527)sun.net.www.http.HttpClient.<init>(HttpClient.java:211)sun.net.www.http.HttpClient.New(HttpClient.java:308)sun.net.www.http.HttpClient.New(HttpClient.java:326)sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:997)sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:933)sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:851)org.apache.spark.util.Utils$.fetchFile(Utils.scala:375)org.apache.spark.executor.Executor$$anonfun$org$apache$spark$executor$Executor$$updateDependencies$6.apply(Executor.scala:325)org.apache.spark.executor.Executor$$anonfun$org$apache$spark$executor$Executor$$updateDependencies$6.apply(Executor.scala:323)scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:98)scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:226)scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:39)scala.collection.mutable.HashMap.foreach(HashMap.scala:98)scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)org.apache.spark.executor.Executor.org$apache$spark$executor$Executor$$updateDependencies(Executor.scala:323)org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:158)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)java.lang.Thread.run(Thread.java:745)Driverstacktrace:atorg.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler$DAGScheduler$$failJobAndIndependentStages(DAGScheduler.scala:1185)atorg.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1174)atorg.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1173)atscala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)atscala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)atorg.apache.spark.scheduler.DAGScheduler.abortStage(DAGScheduler.scala:1173)atorg.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:688)atorg.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:688)atscala.Option.foreach(Option.scala:236)atorg.apache.spark.scheduler.DAGScheduler.handleTaskSetFailed(DAGScheduler.scala:688)atorg.apache.spark.scheduler.DAGSchedulerEventProcessActor$$anonfun$receive$2.applyOrElse(DAGScheduler.scala:1391)atakka.actor.ActorCell.receiveMessage(ActorCell.scala:498)atakka.actor.ActorCell.invoke(ActorCell.scala:456)atakka.dispatch.Mailbox.processMailbox(Mailbox.scala:237)atakka.dispatch.Mailbox.run(Mailbox.scala:219)atakka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386)atscala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)atscala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)atscala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)atscala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

解决方案

时间: 2024-10-27 07:11:53

spark程序运行报错问题,求助的相关文章

求助大神进来看下ios程序运行报错如何解决

问题描述 求助大神进来看下ios程序运行报错如何解决 解决方案 自己研究研究找找百度 解决方案二: [subDict objectForKey: removeObjectForKey:key]; 看不懂,哪有这个方法啊.

配置-vs2008运行报错如下 求助

问题描述 vs2008运行报错如下 求助 在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的.如果在 IIS 中没有将虚拟目录配置为应用程序,则可能导致此错误. 希望大虾给个详细答案,非常感谢! 解决方案 http://zhidao.baidu.com/link?url=EbAJ93vCEWXdpiqjSQlz_f5UT-HTzTDzyQXt7ZdVULg-0rgnUSeYkE-WZQ9eGEgLv_1jwWr3dvgTeWw

404错误-win2003 iis6 配置完后 放上去的.net程序运行报错The resource cannot be found.

问题描述 win2003 iis6 配置完后 放上去的.net程序运行报错The resource cannot be found. 安装了framework4.0 iis服务扩展都 允许了 确认程序没问题,数据库连接代码没问题,页面都存在(程序在另一个空间 好着直接 复制过来的) 求教还会有什么问题,网上搜了一大堆 都试过了还是报找不到文件,我直接在iis点击index.aspx预览的 :整一天了 求帮助 Server Error in '/' Application. The resourc

win32-eclipse中File类程序运行报错

问题描述 eclipse中File类程序运行报错 程序如下: package nmd; import java.io.File; public class FileHello { public static void main(String[] args) { try { Runtime ec=Runtime.getRuntime(); File file=new File("file.txt"); ec.exec(file.getAbsolutePath()); } catch (E

C# WINFORM程序运行报错,有的计算机上运行不会出错

问题描述 C#程序运行在某台计算机上出现这样的问题.其他的计算机都能运行无错..那台计算机操作系统是winxp2报错如下:一点击运行应用程序,就弹出对话框提示:遇到问题需要关闭.我们对此引起的不便表示抱歉.如果您正处于进程当中,信息有可能丢失.现象如图所示:http://120.img.pp.sohu.com/images/blog/2007/12/10/12/22/1175e7fccee.jpg搞了好久都没解决,期待大家的智慧给予帮助 解决方案 解决方案二:装.NET 2.0试试看解决方案三:

数据-我的matlsb版本是2014版的,运行下面的m程序会报错

问题描述 我的matlsb版本是2014版的,运行下面的m程序会报错 %N是数据一共分为多少类 %data是输入的不带分类标号的数据 %u是每一类的中心 %re是返回带标号的数据 function [u, re]=kmeans(data ,N) [m, n]=size(data); %m是数据个数,n是数据维数 ma=zeros(n);%每一维最大的数 mi=zeros(n);%每一维最小的数 u=zeros(N,n);%随机初始化,最终迭代到每一类的中心位置 for i=1:n ma(i)=m

msvsmon exe-vs2010无法运行程序,报错是 无法启动调试

问题描述 vs2010无法运行程序,报错是 无法启动调试 错误信息如下: 尝试运行项目出错:无法启动调试. Microsoft visual Studio 调试监控器(MSVSMON.EXE)未能启动.请通过控制面板中的"添加或删除程序"修复Visual Studio安装. 我电脑上的VS2010以前用是好的,最近出现的这个问题,在运行本地Windows Azure程序时报错,以为只是运行微软云这类程序有问题,但是试了以前运行正常的程序后,也无发运行,提醒错误如上描述.自己重装过软件,

iOS程序在模拟器上无法运行,报错126

问题描述 iOS程序在模拟器上无法运行,报错126 .../Pods/Target Support Files/Pods/Pods-resources.sh: /bin/sh: bad interpreter: Operation not permitted Command /bin/sh failed with exit code 126 解决方案 iOS 模拟器运行报错 解决方案二: * ## 首先你要确定是程序问题还是模拟器问题.这样:新建一个iOS项目,直接运行,如果能正常运行,就说明模

数据结构、c语言-急!!!!为何以下程序执行第2功能离开车厂后在vc++6.0环境下程序会报错并终止运行,求解决方案

问题描述 急!!!!为何以下程序执行第2功能离开车厂后在vc++6.0环境下程序会报错并终止运行,求解决方案 #include "stdafx.h" #include #include #include #define max 5 #define pri 5 typedef struct time{ int year; int day; int month; int hour; int min; }Time; typedef struct node{ char num[10]; Tim