You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@zeppelin.apache.org by "tbonelee (via GitHub)" <gi...@apache.org> on 2024/08/02 13:37:40 UTC

[PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

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

   ### What is this PR for?
   
   Several issues have been identified with the "docker" run mode that are causing it to function improperly. Below are the specific problems encountered:
    #### Base Image Version Issue in `/scripts/docker/interpreter/Dockerfile`:
   
   -  The base image version is outdated, currently at `0.8.0`, which is significantly behind the latest version.
   - The URL for downloading Spark is not working, causing failures in the build process.
    
   #### Host Environment Variables Overriding Container Environment Variables:
   
   -  The `JAVA_HOME` variable from the host is unnecessarily being passed to the container, potentially causing conflicts with the intended Java environment inside the container.
   - The `PATH` from the host is being propagated into the container, which may lead to unexpected behavior due to differing paths and binaries.
   - The `ZEPPELIN_HOME` variable from the host is also being passed, which can interfere with the Zeppelin environment within the container.
   
    #### Miscellaneous Issues:
   
   - Additional issues have been identified that require further investigation and resolution.
   
   ### What type of PR is it?
   Bug Fix
   
   ### Todos
   * [v] - Fix dockerfile
   * [ ] - Check for major interpreters
     * [v] md
     * [v] python
     * [v] shell
     * [ ] spark
   
   ### What is the Jira issue?
   * Open an issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN/6040
   
   ### How should this be tested?
   
   1. Build the Docker image using the Dockerfile located at /scripts/docker/interpreter/Dockerfile.
   2. Set proper configuration variables:
     - `zeppelin.run.mode` : `docker`
     - `zeppelin.docker.container.image` : Use the image name for the Docker image built above.
   3. Test the interpreters.
   
   
   
   
   ### Questions:
   * Does the license files need to update? No
   * Is there breaking changes for older versions? No
   * Does this needs documentation? No
   


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#issuecomment-2288889661

   Actually, Spark hardcoding `SPARK_HOME` to `/opt/spark` and `HADOOP_CONF_DIR` to `/opt/hadoop/conf` in docker image and Spark on K8s cases, so far it works well.
   
   I don't see any potential issues on hardcoding the `ZEPPELIN_HOME` inside the docker image, since docker already provides good isolation, to make life easier, I think we can do similar things too.


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "tbonelee (via GitHub)" <gi...@apache.org>.
tbonelee commented on PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#issuecomment-2295602818

   @jongyoul Just rebased and pushed!


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "tbonelee (via GitHub)" <gi...@apache.org>.
tbonelee commented on code in PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#discussion_r1703178904


##########
zeppelin-plugins/launcher/docker/src/main/java/org/apache/zeppelin/interpreter/launcher/DockerInterpreterProcess.java:
##########
@@ -190,7 +192,7 @@ public void start(String userName) throws IOException {
     // check if the interpreter process exit script
     // if interpreter process exit, then container need exit
     StringBuilder sbStartCmd = new StringBuilder();
-    sbStartCmd.append("sleep 10; ");
+    sbStartCmd.append("sleep 20; ");

Review Comment:
   For Docker mode, there might be a way to actively execute the process instead of just waiting. 
   However, in this case, we may have chosen this structure to upload interpreter files by using commands like `rm`, `mkdir`, while the container is running, and then execute the `interpreter.sh`. 
   
   I will consider whether we can change this structure.



##########
zeppelin-plugins/launcher/docker/src/main/java/org/apache/zeppelin/interpreter/launcher/DockerInterpreterProcess.java:
##########
@@ -190,7 +192,7 @@ public void start(String userName) throws IOException {
     // check if the interpreter process exit script
     // if interpreter process exit, then container need exit
     StringBuilder sbStartCmd = new StringBuilder();
-    sbStartCmd.append("sleep 10; ");
+    sbStartCmd.append("sleep 20; ");

Review Comment:
   For Docker mode, there might be a way to actively execute the process instead of just waiting. 
   However, in this case, we may have chosen this structure to upload interpreter files by using commands like `rm`, `mkdir`, while the container is running, and then execute the `interpreter.sh`. 
   
   I will consider whether we can change this structure.



-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "jongyoul (via GitHub)" <gi...@apache.org>.
jongyoul commented on PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#issuecomment-2285476338

   @tbonelee To make sure, do we assume the zeppelin home for containers is /opt/zeppelin by default?


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#discussion_r1717077683


##########
scripts/docker/interpreter/Dockerfile:
##########
@@ -13,22 +13,24 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM apache/zeppelin:0.8.0
+FROM apache/zeppelin:0.11.2-SNAPSHOT
 MAINTAINER Apache Software Foundation <de...@zeppelin.apache.org>

Review Comment:
   ```suggestion
   MAINTAINER Apache Zeppelin Community <de...@zeppelin.apache.org>
   ```



-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "tbonelee (via GitHub)" <gi...@apache.org>.
tbonelee commented on PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#issuecomment-2282798360

   ping @jongyoul @pan3793 


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#discussion_r1717049304


##########
scripts/docker/interpreter/Dockerfile:
##########
@@ -13,22 +13,24 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM apache/zeppelin:0.8.0
+FROM apache/zeppelin:0.11.2-SNAPSHOT
 MAINTAINER Apache Software Foundation <de...@zeppelin.apache.org>
 
-ENV SPARK_VERSION=2.3.3
-ENV HADOOP_VERSION=2.7
+ENV SPARK_VERSION=3.5.1
+ENV HADOOP_VERSION=3

Review Comment:
   is this Dockerfile supposed to be used by user? if so, we should use ARG instead of ENV.
   
   additionally, it's better to change it to SPARK_BIN_NAME or something else because the official spark binary artifacts have the below suffix 
   ```
   -hadoop2 (removed since 3.4.0)
   -hadoop3
   -without-hadoop
   ```
   users are also allowed to `dev/make-distribution.sh --name custom` to create spark bin tarball with `-custom` suffix.



-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "jongyoul (via GitHub)" <gi...@apache.org>.
jongyoul commented on PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#issuecomment-2295273116

   @pan3793 kindly ping :-) 


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#discussion_r1717058271


##########
zeppelin-plugins/launcher/docker/src/main/java/org/apache/zeppelin/interpreter/launcher/DockerInterpreterProcess.java:
##########
@@ -441,18 +450,20 @@ private void copyRunFileToContainer(String containerId)
     HashMap<String, String> copyFiles = new HashMap<>();
 
     // Rebuild directory
-    rmInContainer(containerId, zeppelinHome);
-    mkdirInContainer(containerId, zeppelinHome);
+    rmInContainer(containerId, containerZeppelinHome);
+    mkdirInContainer(containerId, containerZeppelinHome);
 
 
     // 1) zeppelin-site.xml is uploaded to `${CONTAINER_ZEPPELIN_HOME}` directory in the container
     String confPath = "/conf";
     String zeplConfPath = getPathByHome(zeppelinHome, confPath);
-    mkdirInContainer(containerId, zeplConfPath);
-    copyFiles.put(zeplConfPath + "/zeppelin-site.xml", zeplConfPath + "/zeppelin-site.xml");
-    copyFiles.put(zeplConfPath + "/log4j.properties", zeplConfPath + "/log4j.properties");
+    mkdirInContainer(containerId, containerZeppelinHome);
+    String containerZeplConfPath = containerZeppelinHome + confPath;
+    copyFiles.put(
+        zeplConfPath + "/zeppelin-site.xml", containerZeplConfPath + "/zeppelin-site.xml");
+    copyFiles.put(zeplConfPath + "/log4j.properties", containerZeplConfPath + "/log4j.properties");
     copyFiles.put(zeplConfPath + "/log4j_yarn_cluster.properties",
-        zeplConfPath + "/log4j_yarn_cluster.properties");
+        containerZeplConfPath + "/log4j_yarn_cluster.properties");

Review Comment:
   this won't work for Spark 3.5, because SPARK-6305 (fixed in Spark 3.3) migrated from log4j 1 to log4j 2, thing will be simple after we drop support for Spark 3.2, anyway, this is another issue, let's keep it as-is for now.



-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#issuecomment-2289029333

   @tbonelee thanks for fixing this! an additional request, since this feature is not covered by CI, could you please replace the steps in "How should this be tested?" with the copy-pastable commands? this would help reviewers to verify the functionalities locally :) thanks in advance.


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#issuecomment-2268036094

   the shipped spark version is too old, maybe you can bump it to 3.5


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "tbonelee (via GitHub)" <gi...@apache.org>.
tbonelee commented on code in PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#discussion_r1718115623


##########
scripts/docker/interpreter/Dockerfile:
##########
@@ -13,22 +13,24 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM apache/zeppelin:0.8.0
+FROM apache/zeppelin:0.11.2-SNAPSHOT
 MAINTAINER Apache Software Foundation <de...@zeppelin.apache.org>
 
-ENV SPARK_VERSION=2.3.3
-ENV HADOOP_VERSION=2.7
+ENV SPARK_VERSION=3.5.1
+ENV HADOOP_VERSION=3

Review Comment:
   Now that I think about it, I agree with your comment. It does seem more appropriate for users to control the Spark bin name.
   I'd reflect your suggestion in a new commit.



-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "tbonelee (via GitHub)" <gi...@apache.org>.
tbonelee commented on PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#issuecomment-2265427173

   I am currently checking the functionality of the Spark interpreter


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "jongyoul (via GitHub)" <gi...@apache.org>.
jongyoul commented on code in PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#discussion_r1703014115


##########
zeppelin-plugins/launcher/docker/src/main/java/org/apache/zeppelin/interpreter/launcher/DockerInterpreterProcess.java:
##########
@@ -190,7 +192,7 @@ public void start(String userName) throws IOException {
     // check if the interpreter process exit script
     // if interpreter process exit, then container need exit
     StringBuilder sbStartCmd = new StringBuilder();
-    sbStartCmd.append("sleep 10; ");
+    sbStartCmd.append("sleep 20; ");

Review Comment:
   By the way, I always wonder if we could have a better way to wait until the process is ready, not just praying :-)



-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "tbonelee (via GitHub)" <gi...@apache.org>.
tbonelee commented on PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#issuecomment-2268843108

   @pan3793 Thank you for the suggestion. I have updated the version to 3.5.1


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "tbonelee (via GitHub)" <gi...@apache.org>.
tbonelee commented on PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#issuecomment-2291203889

   @pan3793
   Thank you for the detailed review.
   I've reflected your review and also made some adjustments to the "How should this be tested?" section.
   Does this align with the direction you requested?


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "tbonelee (via GitHub)" <gi...@apache.org>.
tbonelee commented on PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#issuecomment-2286001245

   > @tbonelee To make sure, do we assume the zeppelin home for containers is /opt/zeppelin by default?
   
   Yes, I have matched the zeppelin home in the `scripts/docker/interpreter/Dockerfile` (which is based on `scripts/docker/zeppelin/bin/Dockerfile`, so it refers to the zeppelin home in that Dockerfile) with the default `zeppelin.docker.container.home` configuration value.
   
   In practice, when the run mode is 'docker', the Zeppelin server uploads the interpreter files to the container's zeppelin home path at runtime within the interpreter Docker container, so it might not be strictly necessary to match them. However, to prevent potential conflicts, I determined it would be better to align it with the zeppelin home path of the base image(of dockerfile `scripts/docker/zeppelin/bin/Dockerfile`).
   


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "jongyoul (via GitHub)" <gi...@apache.org>.
jongyoul commented on code in PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#discussion_r1703003707


##########
scripts/docker/interpreter/Dockerfile:
##########
@@ -13,22 +13,24 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM apache/zeppelin:0.8.0
+FROM apache/zeppelin:0.11.2

Review Comment:
   ```suggestion
   FROM apache/zeppelin:0.11.2-SNAPSHOT
   ```



-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "jongyoul (via GitHub)" <gi...@apache.org>.
jongyoul merged PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780


-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#discussion_r1717049304


##########
scripts/docker/interpreter/Dockerfile:
##########
@@ -13,22 +13,24 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM apache/zeppelin:0.8.0
+FROM apache/zeppelin:0.11.2-SNAPSHOT
 MAINTAINER Apache Software Foundation <de...@zeppelin.apache.org>
 
-ENV SPARK_VERSION=2.3.3
-ENV HADOOP_VERSION=2.7
+ENV SPARK_VERSION=3.5.1
+ENV HADOOP_VERSION=3

Review Comment:
   is this Dockerfile supposed to be used by user? if so, we should use ARG instead of ENV.
   
   additionally, it's better to change it to SPARK_NAME or something else because the official spark binary artifacts have the below suffix 
   ```
   -hadoop2 (removed since 3.4.0)
   -hadoop3
   -without-hadoop
   ```
   users are also allowed to `dev/make-distribution.sh --name custom` to create spark bin tarball with `-custom` suffix.



-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "tbonelee (via GitHub)" <gi...@apache.org>.
tbonelee commented on code in PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#discussion_r1717839330


##########
zeppelin-interpreter/src/main/java/org/apache/zeppelin/conf/ZeppelinConfiguration.java:
##########
@@ -1106,6 +1106,7 @@ public enum ConfVars {
 
     // Used by K8s and Docker plugin
     ZEPPELIN_DOCKER_CONTAINER_IMAGE("zeppelin.docker.container.image", "apache/zeppelin:" + Util.getVersion()),
+    ZEPPELIN_DOCKER_CONTAINER_HOME("zeppelin.docker.container.home", "/opt/zeppelin"),
 
     ZEPPELIN_DOCKER_CONTAINER_SPARK_HOME("zeppelin.docker.container.spark.home", "/spark"),

Review Comment:
   Then I'll standardize both the Spark installation directory in `scripts/docker/interpreter/Dockerfile` and `ZEPPELIN_DOCKER_CONTAINER_SPARK_HOME` to `/opt/spark`.



-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [ZEPPELIN-6040] Run mode "docker" not working properly [zeppelin]

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on code in PR #4780:
URL: https://github.com/apache/zeppelin/pull/4780#discussion_r1717035077


##########
zeppelin-interpreter/src/main/java/org/apache/zeppelin/conf/ZeppelinConfiguration.java:
##########
@@ -1106,6 +1106,7 @@ public enum ConfVars {
 
     // Used by K8s and Docker plugin
     ZEPPELIN_DOCKER_CONTAINER_IMAGE("zeppelin.docker.container.image", "apache/zeppelin:" + Util.getVersion()),
+    ZEPPELIN_DOCKER_CONTAINER_HOME("zeppelin.docker.container.home", "/opt/zeppelin"),
 
     ZEPPELIN_DOCKER_CONTAINER_SPARK_HOME("zeppelin.docker.container.spark.home", "/spark"),

Review Comment:
   I also suggest using `/opt/spark` as SPARK_HOME, which matches users who experienced Spark on K8s



-- 
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: reviews-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org