William Lau created TOREE-324:
---------------------------------

             Summary: java.lang.NoSuchMethodError: 
joptsimple.OptionParser.acceptsAll
                 Key: TOREE-324
                 URL: https://issues.apache.org/jira/browse/TOREE-324
             Project: TOREE
          Issue Type: Bug
    Affects Versions: 0.1.0
         Environment: RHEL 7.2
CDH 5.7 Spark Gateway Role (Spark 1.6.0)
Jupyter 4.1.0
            Reporter: William Lau


Encountered the following error when starting the Toree kernel in the Jupyter 
notebook:

{code}
Starting Spark Kernel with SPARK_HOME=/opt/cloudera/parcels/CDH/lib/spark
[I 02:12:40.663 NotebookApp] Kernel started: 
595279c3-d5b1-48aa-8a24-5bfeb27bc181
WARNING: User-defined SPARK_HOME 
(/opt/cloudera/parcels/CDH-5.7.0-1.cdh5.7.0.p0.45/lib/spark) overrides detected 
(/opt/cloudera/parcels/CDH/lib/spark).
WARNING: Running spark-class from user-defined location.
Exception in thread "main" java.lang.NoSuchMethodError: 
joptsimple.OptionParser.acceptsAll(Ljava/util/Collection;Ljava/lang/String;)Ljoptsimple/OptionSpecBuilder;
        at 
org.apache.toree.boot.CommandLineOptions.<init>(CommandLineOptions.scala:37)
        at org.apache.toree.Main$delayedInit$body.apply(Main.scala:25)
        at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
        at 
scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
        at scala.App$$anonfun$main$1.apply(App.scala:71)
        at scala.App$$anonfun$main$1.apply(App.scala:71)
        at scala.collection.immutable.List.foreach(List.scala:318)
        at 
scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
        at scala.App$class.main(App.scala:71)
        at org.apache.toree.Main$.main(Main.scala:24)
        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:731)
        at 
org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)
        at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)
        at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)
        at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)

{code}

I used the documented command to install the Toree kernel:
{code}
pip install --pre toree
jupyter toree install
{code}

Before this I was trying a self-compiled build from the spark-kernel project 
and I encountered the same exception when starting the kernel in the notebook.






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to