apache zeppelin附加存储库导入 [英] apache zeppelin additional repository import
问题描述
如何在Zeppelin中导入其他依赖项?
How to import an additional dependency in zeppelin?
我正试图用apache zeppelin导入一个库(鞍形),但是...
I am trying to import a library (saddle) in apache zeppelin, however ...
import org.saddle._
<console>:21: error: object saddle is not a member of package org
import org.saddle._
^
我已经尝试过使用%dep解释器(依赖加载程序),如下所示:
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")
我还通过以下方式在GUI中进行了尝试:1.在解释器依赖项下包括maven存储库,或2.在zeppelin.dep.additionalRemoteRepository下包括鞍形网站.
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.
我还尝试下载jar文件,并将其作为SPARK_SUBMIT_OPTIONS包含在conf/zeppelin-env.sh中.
I've also tried downloading the jar file and including it in conf/zeppelin-env.sh as SPARK_SUBMIT_OPTIONS.
然后,当我从那里看到罐子在哪里使用和导入时,我将罐子复制到zeppelin-zengine/target/lib/.
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.
推荐答案
我确定您现在必须解决此问题.如果其他人遇到此问题,则将其发布.我尝试了以下方法,它奏效了.无需添加maven,因为它已经被添加到Zeppelin中.
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")
这篇关于apache zeppelin附加存储库导入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!