Ruslan Dautkhanov created ZEPPELIN-3486:
-------------------------------------------
Summary: Spark SQL interpreter doesn't show %sql (Spark SQL )
exceptions
Key: ZEPPELIN-3486
URL: https://issues.apache.org/jira/browse/ZEPPELIN-3486
Project: Zeppelin
Issue Type: Bug
Components: Core, zeppelin-interpreter
Affects Versions: 0.7.3, 0.8.0, 0.7.4, 0.9.0, 0.8.1
Reporter: Ruslan Dautkhanov
Attachments: image-2018-05-22-15-36-38-774.png
When I run a Spark SQL ddl statement (like create temporary function), Spark
interpreter doesn't show actual error:
!image-2018-05-22-15-36-38-774.png!
I have to go to Spark interpreter log (and I have DEBUG level set) to get true
root cause of the issue (this is just an example):
{noformat}
ERROR [2018-05-22 15:33:36,345] ({pool-2-thread-11}
SparkSqlInterpreter.java[interpret]:125) - Invocation target exception
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.apache.zeppelin.spark.SparkSqlInterpreter.interpret(SparkSqlInterpreter.java:120)
at
org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:103)
at
org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:625)
at org.apache.zeppelin.scheduler.Job.run(Job.java:185)
at
org.apache.zeppelin.scheduler.ParallelScheduler$JobRunner.run(ParallelScheduler.java:162)
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:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: com.epsilon.some.nonextsitent.class
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
{noformat}
Most of our users don't know how to look inside of Spark interpreter logs.
It would be great if Spark interpreter would show all exceptions.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)