ActorNotFound异常试图在Windows 7上运行Spark 1.3.1

时间:2015-06-10 15:37:28

标签: apache-spark akka

我们正试图理解为什么Spark 1.3.1在我的Windows 7笔记本电脑上对我的同事不起作用。 我有几乎相同的设置,一切都适合我。

我搜索了错误消息,但仍未找到解决方案。

这是异常消息(在为Hadoop 2.4预先构建spark 1.3.1 vanilla安装之后)

akka.actor.ActorInitializationException: exception during creation
        at akka.actor.ActorInitializationException$.apply(Actor.scala:164)
        at akka.actor.ActorCell.create(ActorCell.scala:596)
        at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456)
        at akka.actor.ActorCell.systemInvoke(ActorCell.scala:478)
        at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:263)
        at akka.dispatch.Mailbox.run(Mailbox.scala:219)
        at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
        at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
        at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
        at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
        at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: akka.actor.ActorNotFound: Actor not found for: ActorSelection[Anchor(akka://sparkDriver/deadLetters), Path(/)
]
        at akka.actor.ActorSelection$$anonfun$resolveOne$1.apply(ActorSelection.scala:65)
        at akka.actor.ActorSelection$$anonfun$resolveOne$1.apply(ActorSelection.scala:63)
        at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
        at akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.processBatch$1(BatchingExecutor.scala:67)
        at akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:82)
        at akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:59)
        at akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:59)
        at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72)
        at akka.dispatch.BatchingExecutor$Batch.run(BatchingExecutor.scala:58)
        at akka.dispatch.ExecutionContexts$sameThreadExecutionContext$.unbatchedExecute(Future.scala:74)
        at akka.dispatch.BatchingExecutor$class.execute(BatchingExecutor.scala:110)
        at akka.dispatch.ExecutionContexts$sameThreadExecutionContext$.execute(Future.scala:73)
        at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:40)
        at scala.concurrent.impl.Promise$DefaultPromise.scala$concurrent$impl$Promise$DefaultPromise$$dispatchOrAddCallb
ack(Promise.scala:280)
        at scala.concurrent.impl.Promise$DefaultPromise.onComplete(Promise.scala:270)
        at akka.actor.ActorSelection.resolveOne(ActorSelection.scala:63)
        at akka.actor.ActorSelection.resolveOne(ActorSelection.scala:80)
        at org.apache.spark.util.AkkaUtils$.makeDriverRef(AkkaUtils.scala:221)
        at org.apache.spark.executor.Executor.startDriverHeartbeater(Executor.scala:393)
        at org.apache.spark.executor.Executor.<init>(Executor.scala:119)
        at org.apache.spark.scheduler.local.LocalActor.<init>(LocalBackend.scala:58)
        at org.apache.spark.scheduler.local.LocalBackend$$anonfun$start$1.apply(LocalBackend.scala:107)
        at org.apache.spark.scheduler.local.LocalBackend$$anonfun$start$1.apply(LocalBackend.scala:107)
        at akka.actor.TypedCreatorFunctionConsumer.produce(Props.scala:343)
        at akka.actor.Props.newActor(Props.scala:252)
        at akka.actor.ActorCell.newActor(ActorCell.scala:552)
        at akka.actor.ActorCell.create(ActorCell.scala:578)
        ... 9 more

相关问题:

在线搜索此问题并未产生大量结果,这似乎表明这是一个非常罕见且具体的问题:

我的假设是,这与某些解决/ IP冲突等有关,但我不确定。

更多详情

  • JDK 1.7 64位,Windows 7 64位,Spark 1.3.1预构建Hadoop 2.4
  • 我们排除了所有与防火墙相关的问题,我们查看了所有被阻止的流量,但它不存在
  • 我们尝试“以管理员身份运行”而没有运气。
  • 我们尝试了Spark提交和火花外壳,最直接的Spark“Hellow World”无效。
  • 我们确实在localhost:4040获取了UI,该作业被标记为已启动,但正在等待(例如,即使sc.parallelize(List(1,2,3)).count()永远不会完成
  • 日志中未发现其他错误
  • 我在系统和朋友之间注意到的一个区别是:当我执行ping localhost时,我得到127.0.0.1,当他这样做时,他得到:: 1不确定它是否相关,但我看到了一个关于spark的问题有问题的ipv6,看到它只在1.4解决,这是相关的吗? https://issues.apache.org/jira/browse/SPARK-6440

我确定这是一个与网络/安全/权限相关的问题,但我们似乎无法确定它

下一步要去哪看?

1 个答案:

答案 0 :(得分:1)

升级到Spark 1.4.0似乎已经解决了这个问题。

它可能与https://issues.apache.org/jira/browse/SPARK-6440有关,但无法确定。