This is an automated email from the ASF dual-hosted git repository. zjffdu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/zeppelin.git
The following commit(s) were added to refs/heads/master by this push: new 77324af [Minor] Minor update of docs 77324af is described below commit 77324af58d847e67727e523de697e8aabd33386a Author: Jeff Zhang <zjf...@apache.org> AuthorDate: Tue Aug 24 23:37:44 2021 +0800 [Minor] Minor update of docs --- docs/interpreter/flink.md | 3 ++- docs/interpreter/r.md | 9 ++++++--- docs/interpreter/spark.md | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/interpreter/flink.md b/docs/interpreter/flink.md index 77e4b99..8e0476c 100644 --- a/docs/interpreter/flink.md +++ b/docs/interpreter/flink.md @@ -120,10 +120,11 @@ e.g. Here we download Flink 1.12.2 to`/mnt/disk1/flink-1.12.2`, and we mount it to Zeppelin docker container and run the following command to start Zeppelin docker. ```bash -docker run -u $(id -u) -p 8080:8080 --rm -v /mnt/disk1/flink-1.12.2:/opt/flink -e FLINK_HOME=/opt/flink --name zeppelin apache/zeppelin:0.10.0 +docker run -u $(id -u) -p 8080:8080 -p 8081:8081 --rm -v /mnt/disk1/flink-1.12.2:/opt/flink -e FLINK_HOME=/opt/flink --name zeppelin apache/zeppelin:0.10.0 ``` After running the above command, you can open `http://localhost:8080` to play Flink in Zeppelin. We only verify the flink local mode in Zeppelin docker, other modes may not due to network issues. +`-p 8081:8081` is to expose Flink web ui, so that you can access Flink web ui via `http://localhost:8081`. Here's screenshot of running note `Flink Tutorial/5. Streaming Data Analytics` diff --git a/docs/interpreter/r.md b/docs/interpreter/r.md index 648d579..0ed7e89 100644 --- a/docs/interpreter/r.md +++ b/docs/interpreter/r.md @@ -161,9 +161,12 @@ Without any extra configuration, you can run most of tutorial notes under folder docker run -u $(id -u) -p 8080:8080 -p:6789:6789 --rm --name zeppelin apache/zeppelin:0.10.0 ``` -After running the above command, you can open http://localhost:8080 to play R in Zeppelin. -The port `6789` exposed in the above command is for R shiny app. You need to configure `zeppelin.R.shiny.portRange` to be `6789:6789` -to enable shiny app accessible as iframe in Zeppelin. +After running the above command, you can open `http://localhost:8080` to play R in Zeppelin. +The port `6789` exposed in the above command is for R shiny app. You need to make the following 2 interpreter properties to enable shiny app accessible as iframe in Zeppelin docker container. + +* `zeppelin.R.shiny.portRange` to be `6789:6789` +* Set `ZEPPELIN_LOCAL_IP` to be `0.0.0.0` + <img class="img-responsive" src="{{BASE_PATH}}/assets/themes/zeppelin/img/docs-img/r_shiny_app.gif" width="800px"/> diff --git a/docs/interpreter/spark.md b/docs/interpreter/spark.md index 12e0560..a5c78aa 100644 --- a/docs/interpreter/spark.md +++ b/docs/interpreter/spark.md @@ -133,11 +133,11 @@ e.g. Here we download Spark 3.1.2 to`/mnt/disk1/spark-3.1.2`, and we mount it to Zeppelin docker container and run the following command to start Zeppelin docker container. ```bash -docker run -u $(id -u) -p 8080:8080 --rm -v /mnt/disk1/spark-3.1.2:/opt/spark -e SPARK_HOME=/opt/spark --name zeppelin apache/zeppelin:0.10.0 +docker run -u $(id -u) -p 8080:8080 -p 4040:4040 --rm -v /mnt/disk1/spark-3.1.2:/opt/spark -e SPARK_HOME=/opt/spark --name zeppelin apache/zeppelin:0.10.0 ``` After running the above command, you can open `http://localhost:8080` to play Spark in Zeppelin. We only verify the spark local mode in Zeppelin docker, other modes may not work due to network issues. - +`-p 4040:4040` is to expose Spark web ui, so that you can access Spark web ui via `http://localhost:8081`. ## Configuration The Spark interpreter can be configured with properties provided by Zeppelin.