I have a Zeppelin instance running inside of a Docker container. The GUI can be reached on port 8080 from the host and the container can reach the internet.
I am using dylanmei/zeppelin, to pull it, type in:
docker pull dylanmei/zeppelin
Integrating my instance with my ZeppelinHub account was quite easy. There is good documentation about it on the ZeppelinHub site.
At first, you have to download an integration library. This is a jar file and it has to be copied into "ZEPPELIN_HOME/lib/".
If you are also using Docker for running applications, then you can use
Shell1docker cp source_path container_name:destination_path
You can also use the shell inside your container with
Shell1docker exec -it container_name /bin/bash
- If you are also using Docker for running applications, then you can use
You can now obtain a token for your Zeppelin instance. You can manage more Zeppelin instance with your one ZeppelinHub account, it is quite practical!
- Create a new instance, and give it a name. You can also include your Zeppelin credentials (if you have any) inside representation of the instance.
- You get a special token for the Zeppelin instance. Each instance will have a unique one. You also get a user key with your token, if you have provided user credentials, too.
Now you have to setup your Zeppelin client on your machine to be synchronized. It can be done with the previously received token.
- In order to do this, you only have to add some new environment variables for Zeppelin.
Create a new file from zeppelin-env.sh.template, if it does not exist.
Shell1cp ZEPPELIN_HOME/conf/zeppelin-env.sh.template ZEPPELIN_HOME/conf/zeppelin-env.sh
Edit this file, and add the variables and values below:
Shell12345export ZEPPELIN_NOTEBOOK_STORAGE="org.apache.zeppelin.notebook.repo.VFSNotebookRepo, com.nflabs.zeppelinhub.notebook.repo.ZeppelinHubRepo"export ZEPPELINHUB_API_ADDRESS="https://www.zeppelinhub.com"export ZEPPELINHUB_API_TOKEN="YOUR_TOKEN_STRING"# If you provided user credentials, you also have to copy the user keyexport ZEPPELINHUB_USER_KEY="YOUR_USER_KEY"
- If you also use the same Docker container, you won't have some fancy text editors inside. Because of this I am used to copy the file from the Docker container with docker cp and edit them on my host machine.
- Now you have to restart Zeppelin.
And now all your notebooks has to be synchronized with your ZeppelinHub account. Now you are able to open them online!
Added value of ZeppelinHub
Still in beta
So I am really looking forward to being able to use the 1.0 version!