Support Questions

Find answers, ask questions, and share your expertise

Null pointer exception when installing shell interpreter for zeppelin

avatar
Contributor

While trying to install the shell interpreter for zeppelin (v 0.8.0), I fail with this message:

# sudo /usr/hdp/current/zeppelin-server/bin/install-interpreter.sh --name shell
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/3.0.1.0-187/zeppelin/lib/interpreter/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/3.0.1.0-187/zeppelin/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/3.0.1.0-187/zeppelin/lib/slf4j-simple-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Install shell(org.apache.zeppelin:zeppelin-shell:0.8.0) to /usr/hdp/current/zeppelin-server/interpreter/shell ... 
org.sonatype.aether.RepositoryException: Cannot fetch dependencies for org.apache.zeppelin:zeppelin-shell: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

I use HDP 3.0.1

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Alessandro

As we see the following error while installing the SHELL interpreter.

org.sonatype.aether.RepositoryException: Cannot fetch dependencies for org.apache.zeppelin:zeppelin-shell:0.8.0     at org.apache.zeppelin.dep.DependencyResolver.getArtifactsWithDep(DependencyResolver.java:179) . . Caused by: java.lang.NullPointerException     at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:352)

.

This can happen if you do not have internet access (or if you have soem n/w issue_ on the Zeppelin server host. Can you please isolate that?

You can also refer to the following article for similar issues: https://community.hortonworks.com/content/kbentry/84498/zeppelin-does-not-get-installed-properly-wit...

.

Basically We need to have the dependenices (jars) under "/usr/hdp/current/zeppelin-server/local-repo" and the interpreters inside the "/usr/hdp/current/zeppelin-server/interpreter/" dir if he interpreter installation is successful without internet issue.




View solution in original post

3 REPLIES 3

avatar
Contributor

I found a workaround by installing it locally: I downloaded the JARs from Maven: https://mvnrepository.com/artifact/org.apache.zeppelin/zeppelin-shell/0.8.0 and passed it as argument artifact. This worked:

# /usr/hdp/current/zeppelin-server/bin/install-interpreter.sh --name shell --artifact /var/tmp/zeppelin-jar/zeppelin-shell-0.8.0.jar

avatar
Master Mentor

@Alessandro

As we see the following error while installing the SHELL interpreter.

org.sonatype.aether.RepositoryException: Cannot fetch dependencies for org.apache.zeppelin:zeppelin-shell:0.8.0     at org.apache.zeppelin.dep.DependencyResolver.getArtifactsWithDep(DependencyResolver.java:179) . . Caused by: java.lang.NullPointerException     at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:352)

.

This can happen if you do not have internet access (or if you have soem n/w issue_ on the Zeppelin server host. Can you please isolate that?

You can also refer to the following article for similar issues: https://community.hortonworks.com/content/kbentry/84498/zeppelin-does-not-get-installed-properly-wit...

.

Basically We need to have the dependenices (jars) under "/usr/hdp/current/zeppelin-server/local-repo" and the interpreters inside the "/usr/hdp/current/zeppelin-server/interpreter/" dir if he interpreter installation is successful without internet issue.




avatar
Contributor

Thank you, indeed it was an internet issue, changing the dns resolver in "/etc/resolv.conf" worked. default was 127.0.0.11, but this kept spitting errors, changing it to 8.8.8.8 worked. not sure why though.