Gyeongtae Park created ZEPPELIN-6069:
----------------------------------------

             Summary: Volume mount configuration for interpreter.json
                 Key: ZEPPELIN-6069
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-6069
             Project: Zeppelin
          Issue Type: Task
            Reporter: Gyeongtae Park
             Fix For: 0.12.0
         Attachments: image-2024-08-29-01-30-09-220.png, 
image-2024-08-29-01-31-31-648.png, image-2024-08-29-01-32-02-777.png

I want to connect to the database for each environment—development, staging, 
and production—and control it by mounting the interpreter.json file, but this 
is currently not possible. You can check a simple test as follows:

 

I added the following content to the original conf/interpreter.json file: I 
copied the contents of the md interpreter and only modified the interpreter 
name to md_test.


{quote}{

  "interpreterSettings": {

    "....": \{.........},

    "md_test": {

      "id": "md_test",

      "name": "md_test",

      "group": "md",

      "properties": {

        "markdown.parser.type": {

          "name": "markdown.parser.type",

          "value": "flexmark",

          "type": "string",

          "description": "Markdown Parser Type. Available values: markdown4j, 
flexmark. Default \u003d flexmark"

        }

      },

      "status": "READY",

      "interpreterGroup": [

        {

          "name": "md",

          "class": "org.apache.zeppelin.markdown.Markdown",

          "defaultInterpreter": false,

          "editor": {

            "language": "markdown",

            "editOnDblClick": true,

            "completionSupport": false

          }

        }

      ],

      "dependencies": [],

      "option": {

        "remote": true,

        "port": -1,

        "perNote": "shared",

        "perUser": "shared",

        "isExistingProcess": false,

        "setPermission": false,

        "owners": [],

        "isUserImpersonate": false

      }

    }

    "....": \{.........},

  }

}
{quote}
 

I want to mount this file with the container and use it, but an error occurs, 
and I cannot access the website. The contents of the Docker Compose file I used 
are as follows:

 
{quote}services:

  zeppelin-server:

    hostname: zeppelin

    container_name: zeppelin

    image: apache/zeppelin:0.11.2

    ports:

      - "8080:8080"

    environment:

      ZEPPELIN_PORT: 8080

      ZEPPELIN_MEM: -Xmx1024m -XX:MaxMetaspaceSize=512m

    volumes:

      - ./conf/interpreter.json:/opt/zeppelin/conf/interpreter.json
{quote}
 

docker-compose-zeppelin-only.yml

!image-2024-08-29-01-30-09-220.png!

 

interpreter.json (md)

!image-2024-08-29-01-31-31-648.png!

 

interpreter.json (md_test)

!image-2024-08-29-01-32-02-777.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to