메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


Toree 0.1.0-incubating을 사용하는 경우 Spark 2.x.x를 지원하지 않는다

이는 Spark 2.x.x가 지원하는 Scala 버젼이 2.11.x이상인데 Toree 0.1.0-incubating은 Scala 2.10.4 버젼으로 building되었기 때문에 아래와 같은 NoSuchMethodError가 발생한다.

이런경우 Toree를 0.2.0-incubating을 사용하여 설치해주면 Scala 2.11.x이상을 지원하게되어 아래와 같은 오류는 없어진다.


1. spark2.2.0지원 가능한 버젼의 toree설치

pip3 install https://dist.apache.org/repos/dist/dev/incubator/toree/0.2.0/snapshots/dev1/toree-pip/toree-0.2.0.dev1.tar.gz


2. toree설치

pip3 install toree


3. jupyter의 kernel설정

jupyter toree install --spark_home=$SPARK_HOME --interpreters=Scala,PySpark,SparkR,SQL


------------------오류내용 예시#1---------------------

18/04/20 17:35:23 INFO Main$$anon$1: Kernel version: 0.1.0-incubating

18/04/20 17:35:23 INFO Main$$anon$1: Scala version: Some(2.10.4)

18/04/20 17:35:23 INFO Main$$anon$1: ZeroMQ (JeroMQ) version: 3.2.5

18/04/20 17:35:23 INFO Main$$anon$1: Initializing internal actor system

Exception in thread "main" java.lang.NoSuchMethodError: scala.collection.immutable.HashSet$.empty()Lscala/collection/immutable/HashSet;

        at akka.actor.ActorCell$.<init>(ActorCell.scala:336)

        at akka.actor.ActorCell$.<clinit>(ActorCell.scala)

        at akka.actor.RootActorPath.$div(ActorPath.scala:185)

        at akka.actor.LocalActorRefProvider.<init>(ActorRefProvider.scala:465)

        at akka.actor.LocalActorRefProvider.<init>(ActorRefProvider.scala:453)

        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:423)

        at akka.actor.ReflectiveDynamicAccess$$anonfun$createInstanceFor$2.apply(DynamicAccess.scala:78)

        at scala.util.Try$.apply(Try.scala:192)

        at akka.actor.ReflectiveDynamicAccess.createInstanceFor(DynamicAccess.scala:73)

        at akka.actor.ReflectiveDynamicAccess$$anonfun$createInstanceFor$3.apply(DynamicAccess.scala:84)

        at akka.actor.ReflectiveDynamicAccess$$anonfun$createInstanceFor$3.apply(DynamicAccess.scala:84)

        at scala.util.Success.flatMap(Try.scala:231)

        at akka.actor.ReflectiveDynamicAccess.createInstanceFor(DynamicAccess.scala:84)

        at akka.actor.ActorSystemImpl.liftedTree1$1(ActorSystem.scala:585)

        at akka.actor.ActorSystemImpl.<init>(ActorSystem.scala:578)

        at akka.actor.ActorSystem$.apply(ActorSystem.scala:142)

        at akka.actor.ActorSystem$.apply(ActorSystem.scala:109)

        at org.apache.toree.boot.layer.StandardBareInitialization$class.createActorSystem(BareInitialization.scala:71)

        at org.apache.toree.Main$$anon$1.createActorSystem(Main.scala:34)

        at org.apache.toree.boot.layer.StandardBareInitialization$class.initializeBare(BareInitialization.scala:60)

        at org.apache.toree.Main$$anon$1.initializeBare(Main.scala:34)

        at org.apache.toree.boot.KernelBootstrap.initialize(KernelBootstrap.scala:70)

        at org.apache.toree.Main$delayedInit$body.apply(Main.scala:39)

        at scala.Function0$class.apply$mcV$sp(Function0.scala:34)

        at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)

        at scala.App$$anonfun$main$1.apply(App.scala:76)

        at scala.App$$anonfun$main$1.apply(App.scala:76)

        at scala.collection.immutable.List.foreach(List.scala:381)

        at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)

        at scala.App$class.main(App.scala:76)

        at org.apache.toree.Main$.main(Main.scala:23)

        at org.apache.toree.Main.main(Main.scala)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:738)

        at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:187)

        at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:212)

        at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:126)

        at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)

[W 17:35:31.691 NotebookApp] Timeout waiting for kernel_info reply from 6f5493bd-5123-4b25-b2a4-e856cdef51ee



------------------오류내용 예시#2---------------------
18/04/17 19:09:32 INFO Main$$anon$1: Kernel version: 0.1.0-incubating
18/04/17 19:09:32 INFO Main$$anon$1: Scala version: Some(2.10.4)
18/04/17 19:09:32 INFO Main$$anon$1: ZeroMQ (JeroMQ) version: 3.2.5
18/04/17 19:09:32 INFO Main$$anon$1: Initializing internal actor system
Exception in thread "main" java.lang.NoSuchMethodError: scala.collection.immutable.HashSet$.empty()Lscala/collection/immutable/HashSet;
        at akka.actor.ActorCell$.<init>(ActorCell.scala:336)
        at akka.actor.ActorCell$.<clinit>(ActorCell.scala)
        at akka.actor.RootActorPath.$div(ActorPath.scala:185)
        at akka.actor.LocalActorRefProvider.<init>(ActorRefProvider.scala:465)
        at akka.actor.LocalActorRefProvider.<init>(ActorRefProvider.scala:453)
        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:423)
        at akka.actor.ReflectiveDynamicAccess$$anonfun$createInstanceFor$2.apply(DynamicAccess.scala:78)
        at scala.util.Try$.apply(Try.scala:192)
        at akka.actor.ReflectiveDynamicAccess.createInstanceFor(DynamicAccess.scala:73)
        at akka.actor.ReflectiveDynamicAccess$$anonfun$createInstanceFor$3.apply(DynamicAccess.scala:84)
        at akka.actor.ReflectiveDynamicAccess$$anonfun$createInstanceFor$3.apply(DynamicAccess.scala:84)
        at scala.util.Success.flatMap(Try.scala:231)
        at akka.actor.ReflectiveDynamicAccess.createInstanceFor(DynamicAccess.scala:84)
        at akka.actor.ActorSystemImpl.liftedTree1$1(ActorSystem.scala:585)
        at akka.actor.ActorSystemImpl.<init>(ActorSystem.scala:578)
        at akka.actor.ActorSystem$.apply(ActorSystem.scala:142)
        at akka.actor.ActorSystem$.apply(ActorSystem.scala:109)
        at org.apache.toree.boot.layer.StandardBareInitialization$class.createActorSystem(BareInitialization.scala:71)
        at org.apache.toree.Main$$anon$1.createActorSystem(Main.scala:34)
        at org.apache.toree.boot.layer.StandardBareInitialization$class.initializeBare(BareInitialization.scala:60)
        at org.apache.toree.Main$$anon$1.initializeBare(Main.scala:34)
        at org.apache.toree.boot.KernelBootstrap.initialize(KernelBootstrap.scala:70)
        at org.apache.toree.Main$delayedInit$body.apply(Main.scala:39)
        at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
        at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
        at scala.App$$anonfun$main$1.apply(App.scala:76)
        at scala.App$$anonfun$main$1.apply(App.scala:76)
        at scala.collection.immutable.List.foreach(List.scala:381)
        at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
        at scala.App$class.main(App.scala:76)
        at org.apache.toree.Main$.main(Main.scala:23)
        at org.apache.toree.Main.main(Main.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:738)
        at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:187)
        at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:212)
        at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:126)
        at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
번호 제목 날짜 조회 수
521 Cloudera Hadoop and Spark Developer Certification 준비(참고) 2018.05.16 871
520 tar를 이용한 리눅스 백업 2018.05.13 729
519 crypto관련 기생충 박멸 스크립트 2018.05.11 1444
518 Hue Job Browser의 Queries탭에서 조건을 지정하는 방법 2018.05.10 675
517 Impala의 Queries탭에서 여러조건으로 쿼리 찾기 2018.05.09 1363
516 Cloudera의 API를 이용하여 impala의 실행되었던 쿼리 확인하는 예시 2018.05.03 884
» Toree 0.1.0-incubating이 Scala 2.10.4까지만 지원하게 되어서 발생하는 NoSuchMethod오류 문제 해결방법(scala 2.11.x을 지원하지만 오류가 발생할 수 있음) 2018.04.20 297
514 우분투 16.04LTS에 Zeppelin 0.7.3설치 2018.04.18 877
513 CentOS 7.x에 Jupyter설치 2018.04.18 1185
512 Apache Toree설치(Jupyter에서 Scala, PySpark, SparkR, SQL을 사용할 수 있도록 하는 Kernel) 2018.04.17 788
511 우분투 16.04LTS에 Jupyter설치 2018.04.17 838
510 beeline으로 접근시 "User: gooper is not allowed to impersonate anonymous (state=08S01,code=0)"가 발생하면서 "No current connection"이 발생하는 경우 조치 2018.04.15 873
509 Cloudera Manager 5.x설치시 embedded postgresql를 사용하는 경우의 관리정보 2018.04.13 176
508 jupyter, zeppelin, rstudio를 이용하여 spark cluster에 job를 실행시키기 위한 정보 2018.04.13 2708
507 Cloudera Manager web UI의 언어를 한글에서 영문으로 변경하기 2018.04.03 1110
506 [우분투] suppoie 채굴 프로세스 발생시 자동으로 삭제하는 shell프로그램 2018.04.01 936
505 Impala daemon기동시 "Could not create temporary timezone file"오류 발생시 조치사항 2018.03.29 855
504 각 서버에 설치되는 cloudera서비스 프로그램 목록(CDH 5.14.0의 경우) 2018.03.29 604
503 Cloudera설치중 실패로 여러번 설치하는 과정에 "Running in non-interactive mode, and data appears to exist in Storage Directory /dfs/nn. Not formatting." 오류가 발생시 조치하는 방법 2018.03.29 1016
502 Cloudera설치중에 "Error, CM server guid updated"오류 발생시 조치방법 2018.03.29 338
위로