Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

prabhjyotsingh
Copy link
Contributor

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?

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

Copy link
Member

@felixcheung felixcheung left a 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...

@prabhjyotsingh
Copy link
Contributor Author

prabhjyotsingh commented Mar 14, 2017

CI is green. Please help review this.

cc: @Leemoonsoo, @r-kamath, @jongyoul, @cloverhearts, @felixcheung.

Copy link
Member

@jongyoul jongyoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Leemoonsoo
Copy link
Member

LGTM

@prabhjyotsingh
Copy link
Contributor Author

Merging this to master and branch-0.7 if no more discussion.

@prabhjyotsingh prabhjyotsingh changed the title Jdbc interpreter sometime doesn't show detailed error message [ZEPPELIN-2175] Jdbc interpreter sometime doesn't show detailed error message Mar 15, 2017
asfgit pushed a commit that referenced this pull request Mar 16, 2017
… 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>
@asfgit asfgit closed this in d0fc54b Mar 16, 2017
@prabhjyotsingh prabhjyotsingh deleted the ZEPPELIN-2175 branch February 25, 2018 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants