How to import an additional dependency in zeppelin?
I am trying to import a library (saddle) in apache zeppelin, however ...
import org.saddle._
:21: error: object saddle is not a member of package org
import org.saddle._
^
I've tried using the %dep interpreter (dependency loader) like this:
%dep
z.reset()
z.addRepo("Saddle Repo").url("http://mvnrepository.com/artifact/org.scala-saddle/saddle_2.10/1.0.1")
z.load("org.scala-saddle:saddle_2.10:1.3.0")
I've also tried in the GUI by 1. including the maven repository under interpreter dependencies, or 2. including the saddle website under zeppelin.dep.additionalRemoteRepository.
I've also tried downloading the jar file and including it in conf/zeppelin-env.sh as SPARK_SUBMIT_OPTIONS.
I've then copied the jar to zeppelin-zengine/target/lib/, when I saw jars from there where used and imported.
So far, I haven't made it work. Help appreciated.
解决方案
I am sure that you must solved the problem by now. Posting it if somebody else facing the issue. I tried the following and it worked. There is no need to add maven as it is already added to Zeppelin.
%spark.dep
z.load("org.scala-saddle:saddle-core_2.11:1.3.4")