为 Zeppelin 安装解释器

Install interpreter for Zeppelin

我需要为 zeppelin apache 自定义安装解释器。不是所有的解释器,我只需要 md,shell,python(默认),jdbc,spark(默认)。我做了一些方法,但失败了:

  1. 通过命令在线安装

    ./bin/install-interpreter.sh --name md,shell,jdbc

但是我收到这样的错误:

Install jdbc(org.apache.zeppelin:zeppelin-jdbc:0.8.0) to /opt/zeppelin-0.8.2-bin-netinst/interpreter/jdbc ...
org.sonatype.aether.RepositoryException: Cannot fetch dependencies for org.apache.zeppelin:zeppelin-jdbc:0.8.0
        at org.apache.zeppelin.dep.DependencyResolver.getArtifactsWithDep(DependencyResolver.java:179)
        at org.apache.zeppelin.dep.DependencyResolver.loadFromMvn(DependencyResolver.java:128)
        at org.apache.zeppelin.dep.DependencyResolver.load(DependencyResolver.java:76)
        at org.apache.zeppelin.dep.DependencyResolver.load(DependencyResolver.java:93)
        at org.apache.zeppelin.dep.DependencyResolver.load(DependencyResolver.java:85)
        at org.apache.zeppelin.interpreter.install.InstallInterpreter.install(InstallInterpreter.java:170)
        at org.apache.zeppelin.interpreter.install.InstallInterpreter.install(InstallInterpreter.java:134)
        at org.apache.zeppelin.interpreter.install.InstallInterpreter.install(InstallInterpreter.java:126)
        at org.apache.zeppelin.interpreter.install.InstallInterpreter.main(InstallInterpreter.java:278)
Caused by: java.lang.NullPointerException
        at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:352)
        at org.apache.zeppelin.dep.DependencyResolver.getArtifactsWithDep(DependencyResolver.java:176)
        ... 8 more

我这样配置来修复它: 在飞艇中-site.xml

<property>
  <name>zeppelin.interpreter.dep.mvnRepo</name>
  <value>https://repo1.maven.org/maven2/</value>
  <description>Remote principal repository for interpreter's additional dependency loading</description>
</property>

在飞艇中-env.sh

export ZEPPELIN_INTERPRETER_DEP_MVNREPO="https://repo1.maven.org/maven2/"  

enter image description here

我把http改成了https,但是没有效果

  1. 离线安装 我从 mvnrepository 和 运行

    下载 jar 文件

    bin/install-interpreter.sh --name md --artifact /tmp/zeppelin-jar/zeppelin-markdown-0.8.2.jar &&
    bin/install-interpreter.sh --name shell --artifact /tmp/zeppelin-jar/zeppelin-shell-0.8.2.jar &&
    bin/install-interpreter.sh --name jdbc --artifact /tmp/zeppelin-jar/zeppelin-jdbc-0.8.2.jar

但是packages涉及到很多其他的依赖jar需要下载。示例:

zeppelin-shell-0.8.2 need some dependencies
org.apache.commons » commons-exec
org.apache.commons » commons-lang3
org.apache.zeppelin » zeppelin-interpreter  
org.slf4j » slf4j-api   
org.slf4j » slf4j-log4j12

如何安装解释器?我希望可以通过在线命令安装。但似乎错误,因为网络。我在公司

从我的 PC 安装

非常感谢大家

我下载了 zeppelin 0.9.0 完整版。问题已解决