You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Richard Xin <ri...@yahoo.com> on 2017/07/21 21:58:09 UTC
Zeppelin directory structure for S3 notebook storage
1. enabled default security by renaming shiro.ini (default user admin, user1,2 ...)2. enabled S3 storage, and my config in
<!-- Creates the following directory structure: s3://{bucket}/{username}/{notebook-id}/note.json --><property> <name>zeppelin.notebook.s3.user</name> <value>username</value> <description>user name for s3 folder structure</description></property>
Re: Zeppelin directory structure for S3 notebook storage
Posted by Richard Xin <ri...@yahoo.com>.
I don't think it's correct to get user from config: https://github.com/apache/zeppelin/blob/master/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/repo/S3NotebookRepo.java#L92
[ZEPPELIN-2805] S3NotebookRepo does not use user's pricinpal - ASF JIRA
|
|
| |
[ZEPPELIN-2805] S3NotebookRepo does not use user's pricinpal - ASF JIRA
|
|
|
it should be getting from user principal instead such as this (and fall back to config security is not enabled):apache/zeppelin
|
|
|
| | |
|
|
|
| |
apache/zeppelin
zeppelin - Mirror of Apache Zeppelin
|
|
|
I just filed a ticket ZEPPELIN-2805, please let me know whether its a valid ticket, thanks
On Friday, July 21, 2017, 3:16:40 PM PDT, Richard Xin <ri...@yahoo.com> wrote:
correction:I tried both "<value>user</value>" and "<value>username</value>", and the S3 directory structure is actually like this:
{bucket}/username/notebook/{notebook-id}/note.json instead of advertised "{bucket}/{username}/{notebook-id}/note.json"
Please advise.Thanks
On Friday, July 21, 2017, 3:02:15 PM PDT, Richard Xin <ri...@yahoo.com> wrote:
oops, accidentally clicked "send" ...
1. enabled default security by renaming shiro.ini (default user admin, user1,2 ...)2. enabled S3 storage, and my config in zeppelin-site.xml
<!-- Creates the following directory structure: s3://{bucket}/{username}/{notebook-id}/note.json --><property> <name>zeppelin.notebook.s3.user</name> <value>username</value> <description>user name for s3 folder structure</description></property>
I noticed that my s3 has following directory structure:{bucket}/username/{notebook-id}/ (where username didn't change for different users)
I was expecting {bucket}/{username}/{notebook-id}/, such as{bucket}/admin/{notebook-id}/ and {bucket}/user1/{notebook-id}/
Did I miss anything?Thanks
On Friday, July 21, 2017, 2:58:09 PM PDT, Richard Xin <ri...@yahoo.com> wrote:
1. enabled default security by renaming shiro.ini (default user admin, user1,2 ...)2. enabled S3 storage, and my config in
<!-- Creates the following directory structure: s3://{bucket}/{username}/{notebook-id}/note.json --><property> <name>zeppelin.notebook.s3.user</name> <value>username</value> <description>user name for s3 folder structure</description></property>
Re: Zeppelin directory structure for S3 notebook storage
Posted by Richard Xin <ri...@yahoo.com>.
correction:I tried both "<value>user</value>" and "<value>username</value>", and the S3 directory structure is actually like this:
{bucket}/username/notebook/{notebook-id}/note.json instead of advertised "{bucket}/{username}/{notebook-id}/note.json"
Please advise.Thanks
On Friday, July 21, 2017, 3:02:15 PM PDT, Richard Xin <ri...@yahoo.com> wrote:
oops, accidentally clicked "send" ...
1. enabled default security by renaming shiro.ini (default user admin, user1,2 ...)2. enabled S3 storage, and my config in zeppelin-site.xml
<!-- Creates the following directory structure: s3://{bucket}/{username}/{notebook-id}/note.json --><property> <name>zeppelin.notebook.s3.user</name> <value>username</value> <description>user name for s3 folder structure</description></property>
I noticed that my s3 has following directory structure:{bucket}/username/{notebook-id}/ (where username didn't change for different users)
I was expecting {bucket}/{username}/{notebook-id}/, such as{bucket}/admin/{notebook-id}/ and {bucket}/user1/{notebook-id}/
Did I miss anything?Thanks
On Friday, July 21, 2017, 2:58:09 PM PDT, Richard Xin <ri...@yahoo.com> wrote:
1. enabled default security by renaming shiro.ini (default user admin, user1,2 ...)2. enabled S3 storage, and my config in
<!-- Creates the following directory structure: s3://{bucket}/{username}/{notebook-id}/note.json --><property> <name>zeppelin.notebook.s3.user</name> <value>username</value> <description>user name for s3 folder structure</description></property>
Re: Zeppelin directory structure for S3 notebook storage
Posted by Richard Xin <ri...@yahoo.com>.
oops, accidentally clicked "send" ...
1. enabled default security by renaming shiro.ini (default user admin, user1,2 ...)2. enabled S3 storage, and my config in zeppelin-site.xml
<!-- Creates the following directory structure: s3://{bucket}/{username}/{notebook-id}/note.json --><property> <name>zeppelin.notebook.s3.user</name> <value>username</value> <description>user name for s3 folder structure</description></property>
I noticed that my s3 has following directory structure:{bucket}/username/{notebook-id}/ (where username didn't change for different users)
I was expecting {bucket}/{username}/{notebook-id}/, such as{bucket}/admin/{notebook-id}/ and {bucket}/user1/{notebook-id}/
Did I miss anything?Thanks
On Friday, July 21, 2017, 2:58:09 PM PDT, Richard Xin <ri...@yahoo.com> wrote:
1. enabled default security by renaming shiro.ini (default user admin, user1,2 ...)2. enabled S3 storage, and my config in
<!-- Creates the following directory structure: s3://{bucket}/{username}/{notebook-id}/note.json --><property> <name>zeppelin.notebook.s3.user</name> <value>username</value> <description>user name for s3 folder structure</description></property>