Fix gobblin.sh script to add external jars as colon separated to HADOOP_CLASSPATH
When using `mapreduce` mode in gobblin.sh, the additional jars passed to
gobblin.sh through --jars are comma separated. They are incorrectly
added to HADOOP_CLASSPATH that takes colon (:) separated jars.
@@ -332,7 +332,8 @@ function build_classpath(){
GOBBLIN_CLASSPATH=${GOBBLIN_JARS}:${GOBBLIN_HADOOP_CLASSPATH}
if [[ -n "$EXTRA_JARS" ]]; then
- GOBBLIN_CLASSPATH=${GOBBLIN_CLASSPATH}:"$EXTRA_JARS"
+ # EXTRA_JARS has comma separated jars. Replace commas with colon for the classpath.
+ GOBBLIN_CLASSPATH=${GOBBLIN_CLASSPATH}:${EXTRA_JARS//,/:}
fi
GOBBLIN_CLASSPATH=${GOBBLIN_CONF}:${GOBBLIN_CLASSPATH}
