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-2318] Fix proxy configuration for http client of zeppelinhub storage layer #2198
Conversation
if (proxyClient != null) { | ||
body = proxyClient.sendToZeppelinHub(request, withResponse); | ||
} else { | ||
LOG.error("Proxy client request was submitted while not correctly initialized"); |
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.
this should be a warning perhaps? since we ignore it anyway
try { | ||
uri = new URI(proxyHostString); | ||
} catch (URISyntaxException e) { | ||
LOG.error("Proxy uri doesn't follow correct syntax", e); |
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.
warning instead of error?
@felixcheung right |
merge into master and branch-0.7 if no further comments |
…f zeppelinhub storage layer ### What is this PR for? this is to resolve this issue for `branch-0.7` since original PR #2198 had conflicts with the branch. for more details check the original pr ### What type of PR is it? Bug Fix | Improvement ### Todos * [x] - Task ### What is the Jira issue? [ZEPPELIN-2318](https://issues.apache.org/jira/browse/ZEPPELIN-2318) ### How should this be tested? check in #2198 ### 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: Khalid Huseynov <khalidhnv@gmail.com> Author: LeiWang <wanglei6744@163.com> Closes #2247 from khalidhuseynov/fix/branch-0.7-ZEPPELIN-2318 and squashes the following commits: ec23c95 [Khalid Huseynov] edge case logs from error -> warn e4db79c [Khalid Huseynov] fix log d8efb46 [Khalid Huseynov] fix websocket timing e662239 [Khalid Huseynov] add ssl setup 8f8109e [Khalid Huseynov] add close routine 7f3cd50 [Khalid Huseynov] jetty client relay to asyncclient when proxy on a65f735 [Khalid Huseynov] add proxy client with asynclient library 6add668 [Khalid Huseynov] add dependency in pom, resolve coflict d4cacad [LeiWang] fix bugs for timer saver
What is this PR for?
it fixes proxy configuration for http client of zeppelinhub storage layer. currently used jetty-client have issue with
https
over proxy (1, 2), so newhttpcomponents
library have been used.What type of PR is it?
Bug Fix | Improvement
Todos
What is the Jira issue?
ZEPPELIN-2318
How should this be tested?
https_proxy
)Screenshots (if appropriate)
Questions: