Skip to content

ZEPPELIN-2261. Support to connect with livy through https#2139

Closed
zjffdu wants to merge 2 commits intoapache:masterfrom
zjffdu:ZEPPELIN-2261
Closed

ZEPPELIN-2261. Support to connect with livy through https#2139
zjffdu wants to merge 2 commits intoapache:masterfrom
zjffdu:ZEPPELIN-2261

Conversation

@zjffdu
Copy link
Copy Markdown
Contributor

@zjffdu zjffdu commented Mar 15, 2017

What is this PR for?

Livy server support https, but the currently livy interpreter doesn't support it. This PR is for for the supporting to connect with livy through https

What type of PR is it?

[Improvement]

Todos

  • - Task

What is the Jira issue?

How should this be tested?

Tested manually on livy server with ssl enabled.

Questions:

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

@zjffdu zjffdu force-pushed the ZEPPELIN-2261 branch 4 times, most recently from 045261b to fb92798 Compare March 16, 2017 00:29
Comment thread docs/interpreter/livy.md
</tr>
<tr>
<td>zeppelin.livy.ssl.trustStore</td>
<td></td>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

could you add example of what they look like?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is just the path of truststore file, I explain it in Description column

HttpClient httpClient = null;
if (livyURL.startsWith("https:")) {
String keystoreFile = property.getProperty("zeppelin.livy.ssl.trustStore");
String password = property.getProperty("zeppelin.livy.ssl.trustStorePassword");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should check they are not emply/whitespace before proceeding?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed, and also make another improvement to create RestTemplate in constructor. Otherwise each livy rest api would construct a new RestTemplate.

@zjffdu zjffdu force-pushed the ZEPPELIN-2261 branch 2 times, most recently from 57ae807 to efda062 Compare March 20, 2017 09:23
@zjffdu zjffdu force-pushed the ZEPPELIN-2261 branch 2 times, most recently from 4a5cf72 to d8b60a8 Compare March 20, 2017 10:48
@felixcheung
Copy link
Copy Markdown
Member

is it possible to add tests for https?

@zjffdu
Copy link
Copy Markdown
Contributor Author

zjffdu commented Mar 21, 2017

I am afraid not, ssh need keystore file which is host dependent.

@felixcheung
Copy link
Copy Markdown
Member

merging if no more comment

@asfgit asfgit closed this in 9d40013 Mar 23, 2017
asfgit pushed a commit that referenced this pull request Apr 28, 2017
### What is this PR for?
Livy server support https, but the currently livy interpreter doesn't support it. This PR is for for the supporting to connect with livy through https

### What type of PR is it?
[Improvement]

### Todos
* [ ] - Task

### What is the Jira issue?
* https://issues.apache.org/jira/browse/ZEPPELIN-2261

### How should this be tested?
Tested manually on livy server with ssl enabled.

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Jeff Zhang <zjffdu@apache.org>

Closes #2139 from zjffdu/ZEPPELIN-2261 and squashes the following commits:

52fc204 [Jeff Zhang] address comment
53230c3 [Jeff Zhang] [ZEPPELIN-2261]. Support to connect with livy through https

(cherry picked from commit 9d40013)
Signed-off-by: Jeff Zhang <zjffdu@apache.org>
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.

2 participants