Hi,

Have you tried dependency loader?
http://zeppelin.incubator.apache.org/docs/interpreter/spark.html#dependencyloading

You can load your dependency in the first paragraph using %dep interpreter,
and then next paragraph you can import it.  (note that dep interpreter
works before spark interpreter initialized)

hope this helps.

Thanks,
moon




On Sat, Apr 25, 2015 at 4:38 AM Radu Brumariu <[email protected]> wrote:

> Hi,
> I am trying to make a package available in the spark interpreter that
> would work something like this :
>
> import org.mypackage.MyPackage.{A, B, C}
> ...
>
> But when I try to make use of the classes it complains that :
>
> <console>:31: error: object A is not a member of package
> org.mypackage.MyPackage import org.mypackage.MyPackage.{A, B, C}
>
> I have added the dependencies to both ${SRC}/pom.xml and
> ${SRC}/spark/pom.xml but doesn't seem to help.
>
> I have checked that my library is present in
> ${SRC}/spark/target/zeppelin-spark-0.5.0-SNAPSHOT.jar and
> ${SRC}/interpreter/spark/zeppelin-spark-0.5.0-SNAPSHOT.jar
>
> What do I need to do to have those dependencies available in the spark job
> ?
>
> Thanks,
> Radu
>

Reply via email to