apache zeppelin 附加存储库导入 [英] apache zeppelin additional repository import

查看:25
本文介绍了apache zeppelin 附加存储库导入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 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 下的 saddle 网站.

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.

然后我将 jar 复制到 zeppelin-zengine/target/lib/,当我看到从那里使用和导入的 jar 时.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆