mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
### What is this PR for? Implementation of bin/install-interpreter.sh for netinst package which suggested in the [discussion](http://apache-zeppelin-users-incubating-mailing-list.75479.x6.nabble.com/Ask-opinion-regarding-0-6-0-release-package-tp3298p3314.html). Some usages will be ``` # download all interpreters provided by Apache Zeppelin project bin/install-interpreter.sh --all # download an interpreter with name (for example markdown interpreter) bin/install-interpreter.sh --name md # download an (3rd party) interpreter with specific maven artifact name bin/install-interpreter.sh --name md -t org.apache.zeppelin:zeppelin-markdown:0.6.0-SNAPSHOT ``` If it looks fine, i'll continue the work (refactor code, and add test) ### What type of PR is it? Feature ### Todos * [x] - working implementation * [x] - refactor * [x] - add test ### What is the Jira issue? * Open an issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN/ * Put link here, and add [ZEPPELIN-*Jira number*] in PR title, eg. [ZEPPELIN-533] ### How should this be tested? Outline the steps to test the PR here. ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? * Is there breaking changes for older versions? * Does this needs documentation? Author: Lee moon soo <moon@apache.org> Author: AhyoungRyu <fbdkdud93@hanmail.net> Closes #1042 from Leemoonsoo/netinst and squashes the following commits:f81d16e[Lee moon soo] address mina's comment049bc89[Lee moon soo] Update docs7307c67[Lee moon soo] Merge remote-tracking branch 'AhyoungRyu/netinst-docs' into netinst7e749ad[Lee moon soo] Address mina's comment0eedd2a[AhyoungRyu] Address @minahlee feedback13f2d04[Lee moon soo] generate netinst package03c664e[AhyoungRyu] Add a new line5d0a971[AhyoungRyu] Revert install.md to latest version13899fb[AhyoungRyu] Reorganize interpreter installation docs4c1f029[Lee moon soo] Proxy support9079580[Lee moon soo] fix artifact name1077296[Lee moon soo] update testaebca17[Lee moon soo] Add docsd547551[Lee moon soo] Remove test entries6ee06b8[Lee moon soo] Make DependencyResolver in zeppelin-interpreter module not aware of ZEPPELIN_HOME7b1b36a[Lee moon soo] update usage49f0568[Lee moon soo] Add conf/interpreter-list1b558fd[Lee moon soo] update some textec7d152[Lee moon soo] add tip2c81a3f[Lee moon soo] update78a7c52[Lee moon soo] Refactor and add test47f5706[Lee moon soo] Install multiple interpreters at once38e2556[Lee moon soo] Initial implementation of install-interpreter.sh
45 lines
1.7 KiB
Bash
Executable file
45 lines
1.7 KiB
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Licensed to the Apache Software Foundation (ASF) under one
|
|
# or more contributor license agreements. See the NOTICE file
|
|
# distributed with this work for additional information
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
# to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance
|
|
# with the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
# Run Zeppelin
|
|
#
|
|
|
|
bin=$(dirname "${BASH_SOURCE-$0}")
|
|
bin=$(cd "${bin}">/dev/null; pwd)
|
|
|
|
. "${bin}/common.sh"
|
|
|
|
|
|
ZEPPELIN_INSTALL_INTERPRETER_MAIN=org.apache.zeppelin.interpreter.install.InstallInterpreter
|
|
ZEPPELIN_LOGFILE="${ZEPPELIN_LOG_DIR}/install-interpreter.log"
|
|
JAVA_OPTS+=" -Dzeppelin.log.file=${ZEPPELIN_LOGFILE}"
|
|
|
|
if [[ -d "${ZEPPELIN_HOME}/zeppelin-zengine/target/classes" ]]; then
|
|
ZEPPELIN_CLASSPATH+=":${ZEPPELIN_HOME}/zeppelin-zengine/target/classes"
|
|
fi
|
|
addJarInDir "${ZEPPELIN_HOME}/zeppelin-server/target/lib"
|
|
|
|
if [[ -d "${ZEPPELIN_HOME}/zeppelin-interpreter/target/classes" ]]; then
|
|
ZEPPELIN_CLASSPATH+=":${ZEPPELIN_HOME}/zeppelin-interpreter/target/classes"
|
|
fi
|
|
addJarInDir "${ZEPPELIN_HOME}/zeppelin-interpreter/target/lib"
|
|
|
|
addJarInDir "${ZEPPELIN_HOME}/lib"
|
|
|
|
CLASSPATH+=":${ZEPPELIN_CLASSPATH}"
|
|
$ZEPPELIN_RUNNER $JAVA_OPTS -cp $CLASSPATH $ZEPPELIN_INSTALL_INTERPRETER_MAIN ${@}
|