[ 
https://issues.apache.org/jira/browse/TOREE-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16123757#comment-16123757
 ] 

ASF GitHub Bot commented on TOREE-324:
--------------------------------------

GitHub user lresende opened a pull request:

    https://github.com/apache/incubator-toree/pull/133

    [TOREE-324] Upgrade jopt-simple dependency to solve NoSuchMethodError

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/lresende/incubator-toree toree-324

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-toree/pull/133.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #133
    
----
commit cdb4fb7d3ec3d3ed7d477f65deb3aa94debcab58
Author: Luciano Resende <lrese...@apache.org>
Date:   2017-08-11T17:47:16Z

    [TOREE-324] Upgrade jopt-simple dependency to solve NoSuchMethodError

----


> 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.4.14#64029)

Reply via email to