Skip to content

Notebook Storage Options for Cuelake

vincue edited this page May 13, 2021 · 8 revisions

Github

Go to /zeppelin/ and place you git repo:

git clone <remote repo> 

Go to file /zeppelin/conf/zeppelin-conf.xml and add:

<property>
  <name>zeppelin.notebook.git.remote.access-token</name>
  <value>YOUR_TOKEN</value>
  <description>from https://github.com/settings/tokens</description>
</property>

<property>
  <name>zeppelin.notebook.git.remote.origin</name>
  <value>org.apache.zeppelin.notebook.repo.GitHubNotebookRepo</value>
  <description>notebook persistence layer implementation</description>
</property>

<property>
  <name>zeppelin.notebook.dir</name>
  <value>YOUR_GIT_CLONED_DIRECTORY</value>
  <description>notebook persistence layer implementation</description>
</property>

<property>
  <name>zeppelin.notebook.git.remote.username</name>
  <value>GITHUB_USERNAME</value>
  <description>remote Git repository username</description>
</property>

For auto push on commit: Go to your local repo, in the .git/hooks folder, and create a post-commit file, make it executable chmod +x filename, and add:

#!/bin/sh
git push origin master

For changing commit button on notebook to commit all: Go to your local repo, in the .git/hooks folder, and create a pre-commit file, make it executable chmod +x filename, and add:

#!/bin/sh
git add -A
Clone this wiki locally