File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,15 @@ function addEachJarInDir(){
7070 fi
7171}
7272
73+ function addEachJarInDirRecursive(){
74+ if [[ -d " ${1} " ]]; then
75+ for jar in $( find -L " ${1} " -type f -name ' *jar' ) ; do
76+ ZEPPELIN_CLASSPATH=" $jar :$ZEPPELIN_CLASSPATH "
77+ done
78+ fi
79+ }
80+
81+
7382function addJarInDir(){
7483 if [[ -d " ${1} " ]]; then
7584 ZEPPELIN_CLASSPATH=" ${1} /*:${ZEPPELIN_CLASSPATH} "
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ if [[ "${INTERPRETER_ID}" == "spark" ]]; then
8787 # add Hadoop jars into classpath
8888 if [[ -n " ${HADOOP_HOME} " ]]; then
8989 # Apache
90- addEachJarInDir " ${HADOOP_HOME} /share"
90+ addEachJarInDirRecursive " ${HADOOP_HOME} /share"
9191
9292 # CDH
9393 addJarInDir " ${HADOOP_HOME} "
You can’t perform that action at this time.
0 commit comments