Uh oh!
There was an error while loading. Please reload this page.
[WIP] [ZEPPELIN-1339] [ZEPPELIN-1000] [ZEPPELIN-1338] Note and services per user - #1390
[WIP] [ZEPPELIN-1339] [ZEPPELIN-1000] [ZEPPELIN-1338] Note and services per user#1390echarles wants to merge 13 commits into
Conversation
jongyoul
commented
Aug 31, 2016
AFAIK, this issue is already assigned @khalidhuseynov, and he is in progress. @khalidhuseynov Can you share your status? |
khalidhuseynov
commented
Sep 1, 2016
this approach is a bit more breaking in terms of changes as well as compatibility with older versions (at least on notebook and storage level). i was working more on a filtering approach on a notes based on permissions which is backward compatible and currently WIP under #1392 . possibly we could discuss each approach's pros and cons and come up with something better. |
khalidhuseynov
commented
Sep 1, 2016
@echarles also would you mind rebasing from master? |
echarles
commented
Sep 1, 2016
@khalidhuseynov Good to discuss with you about what a multiuser note management would be. For the file system repo, this PR will give you: The note folders are moved one level-down, each user having its workspace. Each user also has its own Interpreter settings and bindings assignment is made possible by keeping separate interpreterfactory, searchservice... per web user session. To ensure backwards compatibility, I propose (not yet implemented) a The other repository implements (azure, github...) need more love with the credential service (each user can have their own credentials). PS: I had a quick look at #1392 - Let's continue this discussion - Depending on the outcomes, we can decide |
Leemoonsoo
commented
Sep 1, 2016
zjffdu
commented
Sep 1, 2016
@echarles Did you also implement interpreter setting per user in this PR as described in ZEPPELIN-1338 ? |
| */ | ||
| public class AuthenticationInfo { | ||
| public static final String ANONYMOUS = "anonynmous"; | ||
| public static final AuthenticationInfo ANONYMOUS_AUTHENTICATION_INFO = new AuthenticationInfo(ANONYMOUS); |
so build failed at least because of checkstyle violations. here are some to fix: Another question is related to what @Leemoonsoo mentioned regarding multiple owners. Actually that's broader question, say user1 added user2 as the reader, or writer for his noteA. then we still need to control each user's view based on note permissions. |
khalidhuseynov
commented
Sep 2, 2016
since this also related to #1265 as well as ZEPPELIN-1338 for interpreter multi user environment, maybe @jongyoul could take more detailed look here as well to see possible design, performance, resource utilisation issues |
echarles
commented
Sep 2, 2016
@zjffdu Correct, this PR also implements ZEPPELIN-1338 User level interpreter setting (I have updated the title and description on this PR). @Leemoonsoo Will check and adapt if needed the behavior for multiple owners and will further digg into #1265 to assess any conflit/divergence. I'd like to second the comment made by @zjffdu in #1265 on the interpreter options complexity. Btw, at the time of the introduction of the current interpreter modes, I already raised my worries on the complexity of those and honestly I am not convinced that I understand them fully (at least at first sight without digging into the code) and I fear that #1265 will make the situation still more complex. Taking back @zjffdu statement: Besides, I think we should think more deeply on the relationship between note, user and interpreter., and I would add also the relation with the SearchService, Helium... and any other services that Zeppelin uses (cc/ @jongyoul) - All these questions also binds to ZEPPELIN-1236 "Multi-user notebook with user controls support" created by @frosiere talking about shared dashboard... Having this discussion on the mailing list independently of any PR would better define the efforst to be taken in each PR. @khalidhuseynov I have the bad habit to build with |
Conflicts: zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java zeppelin-server/src/test/java/org/apache/zeppelin/rest/ZeppelinSparkClusterTest.java
Conflicts: notebook/2BWJFTXKJ/note.json
echarles
commented
Sep 5, 2016
I have introduced a parameter in the URL An alternative would be to intercalate the user in the URL: http://localhost/#/userName/noteId Regarding multiple owners, I would simply drop this feature (just like a file, a note belongs to a unique user). Apart minor navigation glitches, it works pretty well here. I continue to follow #1265 and try to keep this PR orthogonal to what is discussed/implemented in there. I will add a note regarding ZEPPELIN-1144 Zeppelin home page should only list notebooks with read or write permission #1330 - If listing all notes with read access is mandatory, I would have to fallback to the single |
corneadoug
commented
Sep 6, 2016
@echarles can you explain more about the |
| return notebookAuthorization; | ||
| } | ||
| public NotebookRepo getNotebookRepo() { |
There was a problem hiding this comment.
although might be good idea to have access to it, didn't see where is it used
khalidhuseynov
commented
Sep 6, 2016
@echarles I also believe having global/single NotebookAuthorization module would be more relevant |
echarles
commented
Sep 6, 2016
@corneadoug I will write asap a small document explaining the logic behing this PR (interpreter factory by user, runAs...). |
jongyoul
commented
Sep 6, 2016
@echarles I've looked around your PR. I think your PR makes Zeppelin support separate users within a same instance. I have two questions regarding current behaviour. The first is about collaborative mode. If some users want to share their notebook to others which are able to login in same Zeppelin instance, and enable them to run it, how can user do that? The second one is about running interpreter instance. For now, Zeppelin supports three mode for different notes to run an interpreter, 'shared', 'scoped', 'isolated'. But in your PR, because you make interpreterFactory divided by users, all interpreters run a 'isolated' mode for all users. This means that if hundred users run simple markdown interpreter, Zeppelin launches same number of JVM on a same host. My PR considers that situation but your PR divide interpreterFactory by user, then will break my consideration. What do you think of it? And complexity of configuration, @corneadoug will help to make intuitive menu. |
…eppelin.interpreter.peruser.factories configuration
Conflicts: zeppelin-server/src/main/java/org/apache/zeppelin/rest/NotebookRestApi.java zeppelin-server/src/main/java/org/apache/zeppelin/server/ZeppelinServer.java zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java zeppelin-zengine/src/test/java/org/apache/zeppelin/interpreter/InterpreterFactoryTest.java
zjffdu
commented
Sep 26, 2016
I didn't look through the PR, but according @jongyoul 's last comments. If only |
echarles
commented
Sep 26, 2016
I have a prototype that supports the 3 modes. Give me a few days to polish and commit. |
khalidhuseynov
commented
Sep 29, 2016
@echarles you can also push gradually to facilitate review process |
close#83close#86close#125close#133close#139close#146close#193close#203close#246close#262close#264close#273close#291close#299close#320close#347close#389close#413close#423close#543close#560close#658close#670close#728close#765close#777close#782close#783close#812close#822close#841close#843close#878close#884close#918close#989close#1076close#1135close#1187close#1231close#1304close#1316close#1361close#1385close#1390close#1414close#1422close#1425close#1447close#1458close#1466close#1485close#1492close#1495close#1497close#1536close#1545close#1561close#1577close#1600close#1603close#1678close#1695close#1739close#1748close#1765close#1767close#1776close#1783close#1799
What is this PR for?
This implements "notes per user" and "Multiple-users on a single WEB server" - For implementation reasons (the static fields present on the zeppelin server, and the need for each users to bind/configure their own note to the interpereters managed by the InterpreterFactory), this PR implements both - In other words, it would have been too difficult to decouple both).
I also implements "User level interpreter setting".
What type of PR is it?
[Feature]
Todos
What is the Jira issue?
How should this be tested?
Logon / Logout with different users and check that the notes are different.
Screenshots (if appropriate)
Questions: