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-1159] Livy interpreter gets "404 not found" error #1184
Conversation
LGTM |
Merging this if no more discussion. |
@prabhjyotsingh |
@zjffdu have updated PR's description, what I meant was "this should result in proper error message". |
@prabhjyotsingh understood. |
@zjffdu yes, we handle it( and change this string to |
@prabhjyotsingh Got it, I would prefer to create new session for user implicitly and don't expose any livy concept to users. Just try to make it transparent to users. Anyway, we can do it in a follow up ticket, rest lgtm. |
Sure thanks. |
### What is this PR for? RestTemplate throws HttpClientErrorException, exception thrown when an HTTP 4xx is received. http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/client/HttpClientErrorException.html ### What type of PR is it? [Bug Fix] ### What is the Jira issue? * [ZEPPELIN-1159](https://issues.apache.org/jira/browse/ZEPPELIN-1159) ### How should this be tested? Run a paragraph using livy interpreter (say sc.version), now let this session expire (or just restart livy server), then try running the same paragraph, this should result in proper error message. ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: Prabhjyot Singh <prabhjyotsingh@gmail.com> Closes #1184 from prabhjyotsingh/ZEPPELIN-1159 and squashes the following commits: 7c58e42 [Prabhjyot Singh] ZEPPELIN-1159 - catch RestTemplate exception (cherry picked from commit 473dc72) Signed-off-by: Mina Lee <minalee@apache.org>
### What is this PR for? RestTemplate throws HttpClientErrorException, exception thrown when an HTTP 4xx is received. http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/client/HttpClientErrorException.html ### What type of PR is it? [Bug Fix] ### What is the Jira issue? * [ZEPPELIN-1159](https://issues.apache.org/jira/browse/ZEPPELIN-1159) ### How should this be tested? Run a paragraph using livy interpreter (say sc.version), now let this session expire (or just restart livy server), then try running the same paragraph, this should result in proper error message. ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: Prabhjyot Singh <prabhjyotsingh@gmail.com> Closes apache#1184 from prabhjyotsingh/ZEPPELIN-1159 and squashes the following commits: 7c58e42 [Prabhjyot Singh] ZEPPELIN-1159 - catch RestTemplate exception
### What is this PR for? RestTemplate throws HttpClientErrorException, exception thrown when an HTTP 4xx is received. http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/client/HttpClientErrorException.html ### What type of PR is it? [Bug Fix] ### What is the Jira issue? * [ZEPPELIN-1159](https://issues.apache.org/jira/browse/ZEPPELIN-1159) ### How should this be tested? Run a paragraph using livy interpreter (say sc.version), now let this session expire (or just restart livy server), then try running the same paragraph, this should result in proper error message. ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: Prabhjyot Singh <prabhjyotsingh@gmail.com> Closes apache#1184 from prabhjyotsingh/ZEPPELIN-1159 and squashes the following commits: 7c58e42 [Prabhjyot Singh] ZEPPELIN-1159 - catch RestTemplate exception
What is this PR for?
RestTemplate throws HttpClientErrorException, exception thrown when an HTTP 4xx is received.
http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/client/HttpClientErrorException.html
What type of PR is it?
[Bug Fix]
What is the Jira issue?
How should this be tested?
Run a paragraph using livy interpreter (say sc.version), now let this session expire (or just restart livy server), then try running the same paragraph, this should result in proper error message.
Screenshots (if appropriate)
Questions: