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-828] Use individual user credentials for data source authentication #860
Conversation
Hi @prasadwagle. Thanks for sharing great work. I think this is nice solution for http://apache-zeppelin-users-incubating-mailing-list.75479.x6.nabble.com/Storing-Interpreter-Passwords-tp2773.html One feedback is, about passing credential information to interpreter process. But currently, hive (jdbc) is only interpreter that leverages '%hive(DATASOURCE_KEY)'. So most of other interpreters are not able to leverage this new features. So, how about passing all credential map (of login user) to interpreter process? |
@Leemoonsoo I agree with you and have implemented the change to pass all user credentials to the interpreter. I also updated the screencast. Please let me know your feedback. |
@prasadwagle Tried and looks good. I think separate issue can handle address HiveInterpreter changes. If you'd prefer. One thing is, credential here not only can be credentials for 'datasource' but also credentials for anything, depends on how individual interpreter uses this information. right? So how about use little bit more generic name such as 'Credential Id' or 'Credential Name', instead of 'Data source' on 'Credential' page? |
@Leemoonsoo I agree. I removed HiveInterpreter changes from this PR. What do you think about using Entity instead of Data source? |
The "TEST_SELENIUM=true" job in last build failed with the error below. I am going to close/reopen the PR to start the build. 12076 -------------------------------------------------------^M |
Thanks @prasadwagle. It looks good to me! |
CredentialsInfoSaving info = gson.fromJson(json, CredentialsInfoSaving.class); | ||
this.credentialsMap = info.credentialsMap; | ||
} catch (IOException e) { | ||
LOG.error("Error loading credentials file"); |
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.
please use LOG.error("message", e); instead?
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.
Thanks @felixcheung. I made the change. Unfortunately, the selenium flaky test is failing again. I am going to close/reopen the PR again. I created https://issues.apache.org/jira/browse/ZEPPELIN-878.
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.
@prasadwagle Looks like there is still this guy left
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.
@bzz Sorry I missed that. Fixed.
The build failed again because of the flaky test. https://issues.apache.org/jira/browse/ZEPPELIN-878 |
I just merged with the latest master and still got two build failures. https://travis-ci.org/apache/incubator-zeppelin/jobs/133223324 https://travis-ci.org/apache/incubator-zeppelin/jobs/133223320 |
@prasadwagle I think it's better to actually rebase (may be even interactive, to get rid of last 2 commits) the whole branch on top of the latest pull from master, instead of just merging it in. Could you please try that and see if it solves the first issue? |
@bzz I tried your suggestion to rebase of the latest master but got the same error: |
Let me look into that again and get back to you |
It's different issue now - I have found the reason of CI failure and described at ZEPPELIN-878. Will fix it from there. @prasadwagle I think it's good to merge now, as soon as you address felix's feedback |
Thanks @bzz. I think I addressed @felixcheung feedback. @felixcheung - can you please review? |
@prasadwagle thank you! CI fix was merged, so may be we could try rebasing on master again and see if it makes CI happy here as well |
@bzz I rebased off the latest master and got the error below. Should I create a new jira issue or is this a duplicate? https://travis-ci.org/apache/incubator-zeppelin/jobs/134535308 18:38:26,926 ERROR org.apache.zeppelin.AbstractZeppelinIT:153 - Exception in ZeppelinIT while testSparkInterpreterDependencyLoading ... Tests in error: Tests run: 14, Failures: 0, Errors: 1, Skipped: 0 |
@praagarw thanks for poining it out, it's a new one, I'm lookin into it under ZEPPELIN-942 It does not block merging this PR, so since all feedback was addressed - merge it, if there is no further discussion |
### What is this PR for? There were several changes in Zeppelin UI after #860, #1006, #1013, #1081 so update screenshot of documents accordingly. ### What type of PR is it? Documentation ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: AhyoungRyu <fbdkdud93@hanmail.net> Author: Mina Lee <mina.hyeji.lee@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1089 from minahlee/doc/ZEPPELIN-1002 and squashes the following commits: b237caf [Mina Lee] Merge pull request #1 from AhyoungRyu/doc/ZEPPELIN-1002/again b18544a [AhyoungRyu] Update screenshot images in interpreters.md add97fb [AhyoungRyu] Update screenshot images in notebookashomepage.md cdaeb30 [AhyoungRyu] Update screenshot images in index.md b21444a [AhyoungRyu] Update screenshot images in notebook_authorization.md b23f7e4 [AhyoungRyu] Update screenshot images in dependencymanagement.md e7a85f3 [AhyoungRyu] Update screenshot images in lens.md cecd161 [AhyoungRyu] Update screenshot images in ignite.md 9f8cb71 [AhyoungRyu] Update screenshot images in elasticsearch.md 0c9a688 [AhyoungRyu] Hide dynamicinterpreterloading.md temporarily a17f31f [Mina Lee] Update doc image in Explore Zeppelin UI page
### What is this PR for? There were several changes in Zeppelin UI after #860, #1006, #1013, #1081 so update screenshot of documents accordingly. ### What type of PR is it? Documentation ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: AhyoungRyu <fbdkdud93@hanmail.net> Author: Mina Lee <mina.hyeji.lee@gmail.com> Author: Mina Lee <minalee@apache.org> Closes #1089 from minahlee/doc/ZEPPELIN-1002 and squashes the following commits: b237caf [Mina Lee] Merge pull request #1 from AhyoungRyu/doc/ZEPPELIN-1002/again b18544a [AhyoungRyu] Update screenshot images in interpreters.md add97fb [AhyoungRyu] Update screenshot images in notebookashomepage.md cdaeb30 [AhyoungRyu] Update screenshot images in index.md b21444a [AhyoungRyu] Update screenshot images in notebook_authorization.md b23f7e4 [AhyoungRyu] Update screenshot images in dependencymanagement.md e7a85f3 [AhyoungRyu] Update screenshot images in lens.md cecd161 [AhyoungRyu] Update screenshot images in ignite.md 9f8cb71 [AhyoungRyu] Update screenshot images in elasticsearch.md 0c9a688 [AhyoungRyu] Hide dynamicinterpreterloading.md temporarily a17f31f [Mina Lee] Update doc image in Explore Zeppelin UI page (cherry picked from commit 09f0ebd) Signed-off-by: Mina Lee <minalee@apache.org>
What is this PR for?
The purpose of this pull request is to allow users to use their own credentials to authenticate with data sources.
It contains the following:
What type of PR is it?
Feature
Todos
What is the Jira issue?
ZEPPELIN-828
How should this be tested?
Screenshots (if appropriate)
https://gfycat.com/LiquidGentleKatydid
Questions: