Guillaume Van Delsen created ZEPPELIN-2325:
----------------------------------------------
Summary: using %dep for spark interpreter throw npe when user
impersonate is enabled
Key: ZEPPELIN-2325
URL: https://issues.apache.org/jira/browse/ZEPPELIN-2325
Project: Zeppelin
Issue Type: Bug
Affects Versions: 0.8.0
Reporter: Guillaume Van Delsen
%dep works fine in yarn-client mode except when we setup the spark interpreter
by "instantiated per user in isolated scope" and enabled "user impersonate"
which throws an NPE :
ERROR [2017-03-28 15:59:52,558] ({pool-2-thread-2} Job.java[run]:183) - Job
failed
java.lang.NullPointerException
at
org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:352)
at
org.apache.zeppelin.spark.dep.SparkDependencyContext.fetchArtifactWithDep(SparkDependencyContext.java:171)
at
org.apache.zeppelin.spark.dep.SparkDependencyContext.fetch(SparkDependencyContext.java:121)
at
org.apache.zeppelin.spark.DepInterpreter.interpret(DepInterpreter.java:245)
at
org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:95)
at
org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:496)
at org.apache.zeppelin.scheduler.Job.run(Job.java:181)
at
org.apache.zeppelin.scheduler.FIFOScheduler$1.run(FIFOScheduler.java:139)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
INFO [2017-03-28 15:59:52,566] ({pool-2-thread-2}
SchedulerFactory.java[jobFinished]:137) - Job remoteInterpretJob_1490716788343
finished by scheduler org.apache.zeppelin.spark.SparkInterpreter896995192
==> zeppelin-zeppelin-cfbe-dev-cld-01.log <==
WARN [2017-03-28 15:59:52,578] ({pool-2-thread-18}
NotebookServer.java[afterStatusChange]:2162) - Job 20170328-151439_549179296 is
finished, status: ERROR, exception: null, result: %text
java.lang.NullPointerException
at
org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:352)
at
org.apache.zeppelin.spark.dep.SparkDependencyContext.fetchArtifactWithDep(SparkDependencyContext.java:171)
at
org.apache.zeppelin.spark.dep.SparkDependencyContext.fetch(SparkDependencyContext.java:121)
at
org.apache.zeppelin.spark.DepInterpreter.interpret(DepInterpreter.java:245)
at
org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:95)
at
org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:496)
at org.apache.zeppelin.scheduler.Job.run(Job.java:181)
at
org.apache.zeppelin.scheduler.FIFOScheduler$1.run(FIFOScheduler.java:139)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
INFO [2017-03-28 15:59:52,590] ({pool-2-thread-18}
SchedulerFactory.java[jobFinished]:137) - Job
paragraph_1490714079715_1669235457 finished by scheduler
org.apache.zeppelin.interpreter.remote.RemoteInterpretershared_session241139385
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)