apache zeppelin附加存储库导入

时间:2016-04-20 16:39:14

标签: java scala maven apache-zeppelin saddle

如何在zeppelin中导入其他依赖项?

我正在尝试在apache zeppelin中导入一个库(saddle),但是......

import org.saddle._

<console>:21: error: object saddle is not a member of package org
   import org.saddle._
              ^

我尝试过使用%dep解释器(依赖加载器),如下所示:

%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网站。

我还尝试下载jar文件并将其作为SPARK_SUBMIT_OPTIONS包含在conf / zeppelin-env.sh中。

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

到目前为止,我还没有成功。帮助赞赏。

2 个答案:

答案 0 :(得分:0)

我相信你现在必须解决这个问题。如果其他人面临问题,则发布。我尝试了下面的工作。没有必要添加maven,因为它已经添加到Zeppelin。

z.load("org.scala-saddle:saddle-core_2.11:1.3.4")

答案 1 :(得分:0)

Zeppelin中的解释器存储库配置GUI。 com.typesafe.config.ConfigFactory或Saddle Core»1.3.4

错误:对象类型安全不是com包的成员

1-打开站点https://mvnrepository.com/并找到“鞍”存储库。

SCALA版本,然后单击Buildr

enter image description here

https://mvnrepository.com/artifact/org.scala-saddle/saddle-core

'org.scala-saddle:saddle-core_2.11:jar:1.3.4'

2-单击右上角的“匿名”,将弹出一个下拉菜单,单击“口译员”,然后在新页面搜索或向下滚动到“火花”。在Spark解释器图块的右上角,有三个按钮,“编辑”,“重新启动”,“删除”。单击“编辑”,然后您将看到依赖关系和值。向下滚动并找到属性,然后单击“添加”并完成属性:

enter image description here

然后点击保存。

3-测试

enter image description here