document configurations

This commit is contained in:
Lee moon soo 2018-11-26 18:43:08 -08:00
parent 9ab6fc4202
commit 993a0e44e8
3 changed files with 62 additions and 0 deletions

View file

@ -584,4 +584,33 @@
<description>Notebook cron folders</description>
</property>
-->
<property>
<name>zeppelin.k8s.mode</name>
<value>auto</value>
<description>Run interpreters on Kubernetes. 'auto|on|off'</description>
</configuration>
<property>
<name>zeppelin.k8s.portforward</name>
<value>false</value>
<description>Port forward to interpreter rpc port. Set 'true' only on local development when zeppelin.k8s.mode 'on'</description>
</configuration>
<property>
<name>zeppelin.k8s.container.image</name>
<value>apache/zeppelin:0.9.0-SNAPSHOT</value>
<description>Docker image for interpreters</description>
</configuration>
<property>
<name>zeppelin.k8s.spark.container.image</name>
<value>apache/spark:latest</value>
<description>Docker image for Spark executors</description>
</configuration>
<property>
<name>zeppelin.k8s.template.dir</name>
<value>k8s</value>
<description>Kubernetes yaml spec files</description>
</configuration>

View file

@ -62,6 +62,9 @@ sed -i '' 's/"version": "'"${FROM_VERSION}"'",/"version": "'"${TO_VERSION}"'",/g
# Change version in Dockerfile
sed -i '' 's/Z_VERSION="'"${FROM_VERSION}"'"/Z_VERSION="'"${TO_VERSION}"'"/g' scripts/docker/zeppelin/bin/Dockerfile
# Change docker image version in configuration
sed -i '' sed 's/zeppelin:'"${OLD_VERSION}"'/zeppelin:'"${NEW_VERSION}"'/g' conf/zeppelin-site.xml.template
# When preparing new dev version from release tag, doesn't need to change docs version
if is_dev_version "${FROM_VERSION}" || ! is_dev_version "${TO_VERSION}"; then
# When prepare new rc for the maintenance release

View file

@ -365,6 +365,36 @@ If both are defined, then the **environment variables** will take priority.
<td>token</td>
<td>GitHub remote name. Default is `origin`</td>
</tr>
<tr>
<td><h6 class="properties">ZEPPELIN_K8S_MODE</h6></td>
<td><h6 class="properties">zeppelin.k8s.mode</h6></td>
<td>auto</td>
<td>Run interpreters on Kubernetes. 'auto|on|off'. 'auto' autodetect environment. 'on' is useful for developer while it allows run Zeppelin server on your IDE and Interpreter on Kubernetes cluster</td>
</tr>
<tr>
<td><h6 class="properties">ZEPPELIN_K8S_PORTFORWARD</h6></td>
<td><h6 class="properties">zeppelin.k8s.portforward</h6></td>
<td>false</td>
<td>Port forward to interpreter rpc port. Set 'true' only on local development when zeppelin.k8s.mode 'on'. Don't use 'true' on production environment</td>
</tr>
<tr>
<td><h6 class="properties">ZEPPELIN_K8S_CONTAINER_IMAGE</h6></td>
<td><h6 class="properties">zeppelin.k8s.container.image</h6></td>
<td>apache/zeppelin:{{ site.ZEPPELIN_VERSION }}</td>
<td>Docker image for interpreters</td>
</tr>
<tr>
<td><h6 class="properties">ZEPPELIN_K8S_SPARK_CONTAINER_IMAGE</h6></td>
<td><h6 class="properties">zeppelin.k8s.spark.container.image</h6></td>
<td>apache/spark:latest</td>
<td>Docker image for Spark executors</td>
</tr>
<tr>
<td><h6 class="properties">ZEPPELIN_K8S_TEMPLATE_DIR</h6></td>
<td><h6 class="properties">zeppelin.k8s.template.dir</h6></td>
<td>k8s</td>
<td>Kubernetes yaml spec files</td>
</tr>
</table>