-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ZEPPELIN-2175] Jdbc interpreter sometime doesn't show detailed error message #2122
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoa. Error != Exception
we probably have a lot of places we need to change then...
CI is green. Please help review this. cc: @Leemoonsoo, @r-kamath, @jongyoul, @cloverhearts, @felixcheung. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LGTM |
Merging this to master and branch-0.7 if no more discussion. |
… message ### What is this PR for? Zeppelin's JDBC interpreter sometimes doesn't show detailed error message on the notebook ui. It shows only plain "ERROR" text near run button in case of failure. User has to check JDBC interpreter log file in order to see a detailed error message. This is mostly in case of incompatible JAR and I see errors mentioned below; ``` java.lang.NoSuchMethodError: org.apache.curator.utils.ZKPaths.fixForNamespace(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String; at org.apache.curator.framework.imps.NamespaceImpl.fixForNamespace(NamespaceImpl.java:82) ``` ``` java.lang.NoSuchMethodError: org.apache.hive.service.auth.HiveAuthFactory.getSocketTransport(Ljava/lang/String;II)Lorg/apache/hive/org/apache/thrift/transport/TTransport; at org.apache.hive.jdbc.HiveConnection.createBinaryTransport(HiveConnection.java:447) ``` Hence, IMO instead of catch -> Exception; we should use catch ->Throwable. ### What type of PR is it? [Improvement] ### What is the Jira issue? * [ZEPPELIN-2175](https://issues.apache.org/jira/browse/ZEPPELIN-2175) ### How should this be tested? Use any incompatible in interpreter dependency, which would throw Error instead of Exception. ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? N/A * Is there breaking changes for older versions? N/A * Does this needs documentation? N/A Author: Prabhjyot Singh <prabhjyotsingh@gmail.com> Closes #2122 from prabhjyotsingh/ZEPPELIN-2175 and squashes the following commits: 666ce8d [Prabhjyot Singh] use Throwable instead of Exception (cherry picked from commit d0fc54b) Signed-off-by: Prabhjyot Singh <prabhjyotsingh@gmail.com>
What is this PR for?
Zeppelin's JDBC interpreter sometimes doesn't show detailed error message on the notebook ui. It shows only plain "ERROR" text near run button in case of failure. User has to check JDBC interpreter log file in order to see a detailed error message.
This is mostly in case of incompatible JAR and I see errors mentioned below;
Hence, IMO instead of catch -> Exception; we should use catch ->Throwable.
What type of PR is it?
[Improvement]
What is the Jira issue?
How should this be tested?
Use any incompatible in interpreter dependency, which would throw Error instead of Exception.
Screenshots (if appropriate)
Questions: