在 Zeppelin Helium 中添加本地依赖项
Adding local dependency in Zeppelin Helium
我正在创建一个 Zeppelin Helium 可视化,我需要添加一个本地依赖项。我正在研究 Zeppelin 0.8.snapshot 版本。
我做不到,我试过按以下方式添加。我尝试为我的模块使用“*”,我也尝试提供相对路径但没有成功。
我的模块必须在本地添加。
{
"name": "zeppelin_helium_xxx",
"description" : "xxx",
"version": "1.0.0",
"main": "heliumxxx",
"author": "",
"license": "Apache-2.0",
"dependencies": {
"mymodule": "*",
"zeppelin-tabledata": "*",
"zeppelin-vis": "*"
}
}
目前,Zeppelin 不支持 helium 中的相对路径 json。您需要为 artifact
字段提供绝对路径。
的一个示例
{
"type" : "VISUALIZATION",
"name" : "zeppelin-highcharts-columnrange",
"version" : "local",
"description": "Column range chart using highcharts library",
"artifact" : "/Users/lambda/github/1ambda/zeppelin-highcharts-columnrange",
"icon": "<i class=\"fa fa-align-center\"></i>"
}
另外,这个问题有一张 JIRA 工单。
加载本地 helium 包时,您可能会看到不正确的错误消息。
ERROR [2017-03-05 12:54:14,308] ({qtp1121647253-68}
HeliumBundleFactory.java[buildBundle]:131) - Can't get module name and version of package zeppelin-markdown-spell
然后再次检查 artifact
值。应该是无效的吧。
我正在创建一个 Zeppelin Helium 可视化,我需要添加一个本地依赖项。我正在研究 Zeppelin 0.8.snapshot 版本。
我做不到,我试过按以下方式添加。我尝试为我的模块使用“*”,我也尝试提供相对路径但没有成功。 我的模块必须在本地添加。
{
"name": "zeppelin_helium_xxx",
"description" : "xxx",
"version": "1.0.0",
"main": "heliumxxx",
"author": "",
"license": "Apache-2.0",
"dependencies": {
"mymodule": "*",
"zeppelin-tabledata": "*",
"zeppelin-vis": "*"
}
}
目前,Zeppelin 不支持 helium 中的相对路径 json。您需要为 artifact
字段提供绝对路径。
{
"type" : "VISUALIZATION",
"name" : "zeppelin-highcharts-columnrange",
"version" : "local",
"description": "Column range chart using highcharts library",
"artifact" : "/Users/lambda/github/1ambda/zeppelin-highcharts-columnrange",
"icon": "<i class=\"fa fa-align-center\"></i>"
}
另外,这个问题有一张 JIRA 工单。
加载本地 helium 包时,您可能会看到不正确的错误消息。
ERROR [2017-03-05 12:54:14,308] ({qtp1121647253-68}
HeliumBundleFactory.java[buildBundle]:131) - Can't get module name and version of package zeppelin-markdown-spell
然后再次检查 artifact
值。应该是无效的吧。