Skip to content

[ZEPPELIN-5109]. Support knox in zeppelin-client#3955

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

[ZEPPELIN-5109]. Support knox in zeppelin-client#3955
zjffdu wants to merge 2 commits intoapache:masterfrom
zjffdu:ZEPPELIN-5109

Conversation

@zjffdu
Copy link
Contributor

@zjffdu zjffdu commented Oct 28, 2020

What is this PR for?

This PR add support of knox in zeppelin-client. I tested it in a real environment. What user need to provide is the knos sso url

What type of PR is it?

[ Feature ]

Todos

  • - Task

What is the Jira issue?

How should this be tested?

Sample code

    ClientConfig clientConfig = new ClientConfig("https://xxx:8443/gateway/cluster-topo/zeppelin",
            1000, "https://xxx:8443/gateway/knoxsso/api/v1/websso");
    ZeppelinClient zeppelinClient = new ZeppelinClient(clientConfig);
    zeppelinClient.login("username", "password");
    String version = zeppelinClient.getVersion();
    System.out.println(version);

Screenshots (if appropriate)

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-5109 branch 6 times, most recently from 4ae5582 to 3c4c95e Compare October 30, 2020 15:44
@Reamer
Copy link
Contributor

Reamer commented Nov 2, 2020

Maybe it makes sense to split the PR into GSON update and knox support for Zeppelin client.

@zjffdu
Copy link
Contributor Author

zjffdu commented Nov 2, 2020

@Reamer gson upgrade is necessary to support knox. Let me create a PR for gson first.

@Reamer
Copy link
Contributor

Reamer commented Nov 3, 2020

LGTM

@asfgit asfgit closed this in 17d2cab Nov 7, 2020
asfgit pushed a commit that referenced this pull request Nov 7, 2020
### What is this PR for?

This PR add support of knox in zeppelin-client. I tested it in a real environment. What user need to provide is the knos sso url

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

### Todos
* [ ] - Task

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

### How should this be tested?
* CI Pass.
https://travis-ci.com/github/zjffdu/zeppelin/builds/196564937

Sample code
```
    ClientConfig clientConfig = new ClientConfig("https://xxx:8443/gateway/cluster-topo/zeppelin",
            1000, "https://xxx:8443/gateway/knoxsso/api/v1/websso");
    ZeppelinClient zeppelinClient = new ZeppelinClient(clientConfig);
    zeppelinClient.login("username", "password");
    String version = zeppelinClient.getVersion();
    System.out.println(version);
```
### 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: Jeff Zhang <zjffdu@apache.org>

Closes #3955 from zjffdu/ZEPPELIN-5109 and squashes the following commits:

76ada3d [Jeff Zhang] update gson in S3NotebookRepo
8ca5770 [Jeff Zhang] [ZEPPELIN-5109]. Support knox in zeppelin-client

(cherry picked from commit 17d2cab)
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