本文介绍了运行主0)java.lang.NoSuchMethodError:scala.collection.immutable.HashSet $​​ .empty()Lscala /收集/不变/ HashSet的;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,当我用SBT运行火花的工作,我已经完成编译,但是当我运行命令运行,我有如下

I got a problem when I used sbt to run a spark job,I have finish compile ,but when I run the command "run",I got the problem below

 [error] (run-main-0) java.lang.NoSuchMethodError: scala.collection.immutable.HashSet$.empty()Lscala/collection/immutable/HashSet;
java.lang.NoSuchMethodError: scala.collection.immutable.HashSet$.empty()Lscala/collection/immutable/HashSet;
    at akka.actor.ActorCell$.<init>(ActorCell.scala:305)
    at akka.actor.ActorCell$.<clinit>(ActorCell.scala)
    at akka.actor.RootActorPath.$div(ActorPath.scala:152)
    at akka.actor.LocalActorRefProvider.<init>(ActorRefProvider.scala:465)
    at akka.remote.RemoteActorRefProvider.<init>(RemoteActorRefProvider.scala:124)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at akka.actor.ReflectiveDynamicAccess$$anonfun$createInstanceFor$2.apply(DynamicAccess.scala:78)
    at scala.util.Try$.apply(Try.scala:191)

任何人都知道什么768,16怎么办?

Anyone knows what shoud I do?

推荐答案

我遇到了同样的错误,当我用Scala的库2.11罐子但是,当我使用Scala库 - 2.10罐子取而代之。它运行良好。

I met with the same error when I used scala-library-2.11 jar But when I replaced it with scala-library-2.10 jar . It runs fine

这篇关于运行主0)java.lang.NoSuchMethodError:scala.collection.immutable.HashSet $​​ .empty()Lscala /收集/不变/ HashSet的;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 03:21