ParkGyeongTae opened a new pull request, #4876:
URL: https://github.com/apache/zeppelin/pull/4876

   ### What is this PR for?
   This PR adds a Dockerfile to build a elasticsearch interpreter.
   
   ### What type of PR is it?
   Feature
   
   ### Todos
   * [ ] - README.md
   * [ ] - Dockerfile
   * [ ] - Dockerfile_elasticsearch
   
   ### What is the Jira issue?
   * https://issues.apache.org/jira/projects/ZEPPELIN/issues/ZEPPELIN-6130
   
   ### How should this be tested?
   
   * Build and run Elasticsearch with Docker
   ```bash
   # Build
   docker build -f ./elasticsearch/Dockerfile_elasticsearch -t elasticsearch .
   # Run
   docker run -d -p 9200:9200 -p 9300:9300 --name elasticsearch elasticsearch
   ```
   
   * Build and run the Elasticsearch interpreter with Docker
   ```bash
   # Build
   docker build -f ./elasticsearch/Dockerfile -t elasticsearch-interpreter .
   # Run
   docker run \
   --name elasticsearch-interpreter \
   -p 8087:8087 \
   -e INTERPRETER_EVENT_SERVER_PORT=${__YOUR_INTERPRETER_EVENT_SERVER_PORT__} \
   elasticsearch-interpreter
   ```
   
   * Edit interpreter.json
   ```bash
   # Old
     "elasticsearch": {
         "...": "...",
         "option": {
           "remote": true,
           "port": -1,
           "perNote": "shared",
           "perUser": "shared",
           "isExistingProcess": false,
           "setPermission": false,
           "owners": [],
           "isUserImpersonate": false
         }
       }
   # New
     "elasticsearch": {
         "...": "...",
         "option": {
           "remote": true,
           "port": ${__YOUR_INTERPRETER_EVENT_SERVER_PORT__},
           "isExistingProcess": true,
                    "host": "localhost",
           "setPermission": false,
           "owners": [],
           "isUserImpersonate": false
         }
       }
   ```
   
   * Verify that the shell interpreter container communicates with the zeppelin 
server.
   
   ### Screenshots (if appropriate)
   
   ### Questions:
   * Does the license files need to update? Yes
   * Is there breaking changes for older versions? No
   * Does this needs documentation? Yes
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to