spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Or <and...@databricks.com>
Subject Re: Adding external jar to spark-shell classpath in spark 1.0
Date Wed, 11 Jun 2014 17:39:57 GMT
This is a known issue: https://issues.apache.org/jira/browse/SPARK-1919. We
haven't found a fix yet, but for now, you can workaround this by including
your simple class in your application jar.


2014-06-11 10:25 GMT-07:00 Ulanov, Alexander <alexander.ulanov@hp.com>:

>  Hi,
>
>
>
> I am currently using spark 1.0 locally on Windows 7. I would like to use
> classes from external jar in the spark-shell. I followed the instruction
> in:
> http://mail-archives.apache.org/mod_mbox/spark-user/201402.mbox/%3CCALrNVjWWF6k=c_JrhoE9W_qaACJLD4+kbdUhfV0Pitr8H1fXnw@mail.gmail.com%3E
>
>
>
> I have set ADD_JARS=”my.jar” SPARK_CLASSPATH=”my.jar” in spark-shell.cmd
> but this didn’t work.
>
>
>
> I also tried running “spark-shell.cmd --jars my.jar --driver-class-path
> my.jar --driver-library-path my.jar” and it didn’t work either.
>
>
>
> I cannot load any class from my jar into spark shell. Btw my.jar contains
> a simple Scala class.
>
>
>
> Best regards, Alexander
>

Mime
View raw message