Giter Club home page Giter Club logo

shinyproxy-zeppelin-notebook-demo's Introduction

Running Apache Zeppelin notebooks inside ShinyProxy

The official Docker image apache/zeppelin can be used.

ShinyProxy Configuration

Create a ShinyProxy configuration file (see application.yml for a complete file), containing:

proxy:
  specs:
    - id: zeppelin
      display-name: Apache Zeppelin
      container-image: apache/zeppelin:0.8.1
      websocket-reconnection-mode: None
      port: 8080

In order to store the notebooks, the volumes on the host need to be mounted to point to /zeppelin/notebook inside container (and to /zeppelin/logs for the logs):

    container-volumes: [ "/tmp/zeppelin/#{proxy.userId}/notebook:/zeppelin/notebook", "/tmp/zeppelin/#{proxy.userId}/logs:/zeppelin/logs" ]

This will ensure that each user's notebooks are stored in a separate directory on the server. By modifying the host paths other scenarios can be implemented, such as shared notebook storage per user group, or shared storage for all users.

In addition to the notebooks, also the "interpreter binding" configuration need to be stored. This can be achieved by creating a folder on the Docker host containing conf files from Apache Zeppelin:

# creating `conf` folder
VERSION=0.8.1
cd /tmp/zeppelin
wget -O zeppelin.tar.gz https://github.com/apache/zeppelin/archive/v${VERSION}.tar.gz
tar --strip-components=1 -xvf zeppelin.tar.gz zeppelin-${VERSION}/conf
rm zeppelin.tar.gz

(alternatively run the helper script ./createConf /tmp/zeppelin 0.8.1)

and then mounting it to the container:

    container-volumes: [ "/tmp/zeppelin/#{proxy.userId}/notebook:/zeppelin/notebook", "/tmp/zeppelin/#{proxy.userId}/logs:/zeppelin/logs", "/tmp/zeppelin/conf:/zeppelin/conf" ]

Note that here the conf folder is shared across users.

(c) Copyright Open Analytics NV, 2019-2021.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.