Zeppelin directory structure for S3 notebook storage

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Zeppelin directory structure for S3 notebook storage

Richard Xin
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>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Zeppelin directory structure for S3 notebook storage

Richard Xin
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 <[hidden email]> 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>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Zeppelin directory structure for S3 notebook storage

Richard Xin
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 <[hidden email]> 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 <[hidden email]> 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>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Zeppelin directory structure for S3 notebook storage

Richard Xin



it should be getting from user principal instead such as this (and fall back to config security is not enabled):



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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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>

Loading...