You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Bicky Ealias <bi...@gmail.com> on 2019/04/04 07:48:16 UTC

NotebookServer not in sync for multiple instances of Zeppelin

Hi,
We are trying to set up an additional instance of zeppelin and load balance
the backend using an Nginx proxy and iphashing.
The set up so far looks good.We are using CEPH storage to store the run
time configurations and share the same volume across both the instances.So
interpreter.json,notebook_autorization.json and default directories where
the notebooks re created are identical between both the instances.If user A
creates a notebook on zeppelin1 and if user B is trying to access it via
zeppelin1,user B wont be able to access since the notebook permissions by
default is not public-so this flow works as expected.


However if user B connects to zeppelin2 he can see the notebook since the
notebook server on zeppelin2 doesn’t sync with notebookserver on zeppelin1
at realtime. Rest api call to
zeppelin1/api/notebook/{notebookid}/permissions returns blank list for
readers,owners,writers and runners which defaults to * .So everyone
connecting to zeppelin2 can see the notebooks.
If zeppelin2 is restarted the problem goes away since the notebooksever on
zeppelin2 reintializes from CEPH storage.

Is there a way to sync the notebook permissions at realtime between two
instances of zepppelin?
-- 
*Thanks and Regards,*
*Bicky Ealias*