Skip to content

[ZEPPELIN-1691] Implement NotebookRepoSetting to ZeppelinHub notebookRepo#1681

Closed
anthonycorbacho wants to merge 2 commits intoapache:masterfrom
anthonycorbacho:ZEPPELIN-1691
Closed

[ZEPPELIN-1691] Implement NotebookRepoSetting to ZeppelinHub notebookRepo#1681
anthonycorbacho wants to merge 2 commits intoapache:masterfrom
anthonycorbacho:ZEPPELIN-1691

Conversation

@anthonycorbacho
Copy link
Contributor

What is this PR for?

Implement notebookRepo setting in ZeppelinHub notebook repo.
This change will allow users to directly switch from instance without switching token in zeppelin-env.sh.

What type of PR is it?

[Improvement]

What is the Jira issue?

How should this be tested?

You need to have a valid Zeppelinhub account.
You need to enable zeppelinhub notebook repo (only) in zeppelin-env.sh

export ZEPPELIN_NOTEBOOK_STORAGE="org.apache.zeppelin.notebook.repo.zeppelinhub.ZeppelinHubRepo"
export ZEPPELINHUB_API_ADDRESS="https://www.zeppelinhub.com"

Enable shiro and set it to use Zeppelinhub realm.

Start zeppelin, login, you will see your list of notebooks, if you want to switch instance, go to NotebookRepos, and edit.

Screenshots (if appropriate)

zeppelinhub_note_repo_instance_switch

Questions:

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

…tory.

 This change will allow users to directly switch from instance without switching token in zeppelin-env.sh.
@anthonycorbacho
Copy link
Contributor Author

Please review otherwise i am merging it

@khalidhuseynov
Copy link
Member

@anthonycorbacho i'll look into this

try {
instances = getUserInstances(zeppelinHubUserSession);
} catch (IOException e) {
// user not logged
Copy link
Member

Choose a reason for hiding this comment

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

why not logging some warning here?

@khalidhuseynov
Copy link
Member

@anthonycorbacho tested and works as expected. may check comment for log, LGTM!

@anthonycorbacho
Copy link
Contributor Author

@khalidhuseynov thanks for the review, i addressed it.

Merging if no more discussion

@asfgit asfgit closed this in b0bef98 Nov 30, 2016
@anthonycorbacho anthonycorbacho deleted the ZEPPELIN-1691 branch November 30, 2016 07:32
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