You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@toree.apache.org by "Luciano Resende (JIRA)" <ji...@apache.org> on 2017/12/14 22:29:00 UTC

[jira] [Resolved] (TOREE-459) Failure when adding a Jar.

     [ https://issues.apache.org/jira/browse/TOREE-459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luciano Resende resolved TOREE-459.
-----------------------------------
       Resolution: Cannot Reproduce
         Assignee: Luciano Resende
    Fix Version/s: 0.2.0

It seems that the result from search.maven.org is being redirected and does not work properly. I have tried using the jar url from the repository and it seems to work (at least no errors on adding the jar)

%AddJar http://repo1.maven.org/maven2/ml/dmlc/mxnet/mxnet-full_2.11-osx-x86_64-cpu/0.9.3a/mxnet-full_2.11-osx-x86_64-cpu-0.9.3a.jar

If you still see the issue with the jar url above, please reopen the jira.

Btw, my environment was
Spark version 2.2.0
Scala version 2.11.8

> Failure when adding a Jar.
> --------------------------
>
>                 Key: TOREE-459
>                 URL: https://issues.apache.org/jira/browse/TOREE-459
>             Project: TOREE
>          Issue Type: Bug
>            Reporter: Naveen Swamy
>            Assignee: Luciano Resende
>             Fix For: 0.2.0
>
>
> I am trying to use toree with Spark 2.2.7(latest) and Scala 2.11 however when I add a jar it fails with the error below
> {{
> spark-2.2.7/jars/scala-library-2.11.8.jar(scala/reflect/package.class)' is broken
> (class java.lang.RuntimeException/Scala class file does not contain Scala annotation)
> error: error while loading package, class file '/spark-2.2.7/jars/scala-library-2.11.8.jar(scala/package.class)' is broken
> (class java.lang.RuntimeException/Scala class file does not contain Scala annotation)
> error: error while loading Serializable, class file '/spark-2.2.7/jars/scala-library-2.11.8.jar(scala/Serializable.class)' is broken
> (class java.lang.RuntimeException/Scala class file does not contain Scala annotation)
> res2: Either[org.apache.toree.magic.CellMagicOutput,org.apache.toree.magic.LineMagicOutput] = Right(())
> error: error while loading Predef, class file '/spark-2.2.7/jars/scala-library-2.11.8.jar(scala/Predef.class)' is broken
> (class java.lang.RuntimeException/Scala class file does not contain Scala annotation)
> }}
> The jar I am trying to add is:
> %AddJar https://search.maven.org/remotecontent?filepath=ml/dmlc/mxnet/mxnet-full_2.11-osx-x86_64-cpu/0.9.3a/mxnet-full_2.11-osx-x86_64-cpu-0.9.3a.jar
> Spark version 2.2.1
> Scala version 2.11.8



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)