Skip to content

Commit

Permalink
fix: add back ghafs and update README (#40)
Browse files Browse the repository at this point in the history
* add to README and add remove shiro

* add back ghafs
  • Loading branch information
Tingweiftw authored Nov 30, 2023
1 parent 1fd5f8e commit 19f6f70
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ RUN set -euo pipefail && \
rm zeppelin-${ZEPPELIN_VERSION}-bin-netinst.tgz; \
:

# Install GitHub Release Assets FUSE mount CLI (requires fuse install)
ARG GHAFS_VERSION="v0.1.3"
RUN set -euo pipefail && \
wget https://github.com/guangie88/ghafs/releases/download/${GHAFS_VERSION}/ghafs-${GHAFS_VERSION}-linux-amd64.tar.gz; \
tar xvf ghafs-${GHAFS_VERSION}-linux-amd64.tar.gz; \
rm ghafs-${GHAFS_VERSION}-linux-amd64.tar.gz; \
mv ./ghafs /usr/local/bin/; \
ghafs --version; \
:

RUN set -euo pipefail && \
# Install tera-cli for runtime interpolation
wget https://github.com/guangie88/tera-cli/releases/download/v0.4.1/tera-cli-v0.4.1-x86_64-unknown-linux-musl.tar.gz; \
Expand All @@ -50,8 +60,7 @@ USER zeppelin
# Entrypoint-ish env vars to apply config templates
ENV ZEPPELIN_APPLY_INTERPRETER_JSON "true"
ENV ZEPPELIN_APPLY_ZEPPELIN_SITE "true"
ENV ZEPPELIN_SPARK_ENABLESUPPORTEDVERSIONCHECK = "false"
ENV ZEPPELIN_APPLY_SHIRO "true"
ENV ZEPPELIN_APPLY_SHIRO "false"

# Env var not expanded without Dockerfile, so need to go through sh
CMD ["bash", "-c", "${ZEPPELIN_HOME}/run-zeppelin.sh"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ docker run --rm -it --name zeppelin -p 8080:8080 zeppelin

Wait a while and then access <http://localhost:8080/> in your web browser.

The default username is `user1`, and password is `password2`.
As Spark 3.4.1 is not officially supported by Zeppelin, there is a need to go to `Interpreter` and change `zeppelin.spark.enableSupportedVersionCheck` to false for Spark 3.4.1 to work with Zeppelin

To test that the Spark interpreter is working, simply create a quick notebook
with Spark as the interpreter.
Expand Down

0 comments on commit 19f6f70

Please sign in to comment.