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-2318] Fix proxy configuration for http client of zeppelinhub storage layer #2198

Closed

Conversation

khalidhuseynov
Copy link
Contributor

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 new httpcomponents library have been used.

What type of PR is it?

Bug Fix | Improvement

Todos

  • - implement whole client with proxy

What is the Jira issue?

ZEPPELIN-2318

How should this be tested?

  1. setup proxy and make system point to it (e.g. env should contain https_proxy)
  2. setup storage (e.g. here)

Screenshots (if appropriate)

Questions:

  • Does the licenses files need update? no
  • Is there breaking changes for older versions? no
  • Does this needs documentation? no

if (proxyClient != null) {
body = proxyClient.sendToZeppelinHub(request, withResponse);
} else {
LOG.error("Proxy client request was submitted while not correctly initialized");
Copy link
Member

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);
Copy link
Member

Choose a reason for hiding this comment

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

warning instead of error?

@khalidhuseynov
Copy link
Contributor Author

@felixcheung right warning level makes more sense in those cases, addressed in 8ea7d5d

@khalidhuseynov
Copy link
Contributor Author

merge into master and branch-0.7 if no further comments

@asfgit asfgit closed this in 2173b40 Apr 13, 2017
@khalidhuseynov khalidhuseynov deleted the fix/ZEPPELIN-2318 branch April 13, 2017 04:59
asfgit pushed a commit that referenced this pull request Apr 20, 2017
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants