tree: 0bde69fc3778bb1dae3b45011587e594f647c09e [path history] [tgz]
  1. src/
  2. Dockerfile
  3. HTERM.md
  4. pom.xml
  5. PTY4J.md
  6. README.md
shell/README.md

Overview

Shell interpreter for Apache Zeppelin

Run the interpreter with docker

You can run the shell interpreter as a standalone docker container.

step 1. Specify the configuration for the shell interpreter

    # conf/interpreter.json
    
    "sh": {
      ...
      "option":
      } {
        "remote": true,
        "port": {INTERPRETER_PROCESS_PORT_IN_HOST},
        "isExistingProcess": true,
        "host": "localhost",
        ...
      }

step 2. Build and run the shell interpreter

zeppelin $ ./mvnw clean install -DskipTests
 
zeppelin $ ./bin/zeppelin-daemon.sh start # start zeppelin server.
# check the port of the interpreter event server. you can find it by looking for the log that starts with "InterpreterEventServer is starting at"
   
zeppelin $ docker build -f ./shell/Dockerfile -t shell-interpreter .

zeppelin $ docker run -p {INTERPRETER_PROCESS_PORT_IN_HOST}:8081 \
  -e INTERPRETER_EVENT_SERVER_PORT={INTERPRETER_EVENT_SERVER_PORT} \
  shell-interpreter