From 0ce840925aab9c18273ada73d367f112cdebeeca Mon Sep 17 00:00:00 2001 From: Hyunsik Choi Date: Mon, 15 Jun 2015 23:58:03 -0700 Subject: [PATCH] TAJO-1646: Add extlib directory for third-party libraries. --- tajo-dist/pom.xml | 2 ++ tajo-dist/src/main/bin/tajo | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tajo-dist/pom.xml b/tajo-dist/pom.xml index 0cc61aafbc..cd08b3d4ae 100644 --- a/tajo-dist/pom.xml +++ b/tajo-dist/pom.xml @@ -151,6 +151,8 @@ run mkdir -p share/jdbc-dist run cp -r $ROOT/tajo-jdbc/target/tajo-jdbc-${project.version}-jar-with-dependencies.jar ./share/jdbc-dist/tajo-jdbc-${project.version}.jar + run mkdir -p extlib + if [ -f $ROOT/tajo-catalog/tajo-catalog-drivers/tajo-hive/target/lib/parquet-hive-bundle-*.jar ] then run cp -r $ROOT/tajo-catalog/tajo-catalog-drivers/tajo-hive/target/lib/parquet-hive-bundle-*.jar lib/ diff --git a/tajo-dist/src/main/bin/tajo b/tajo-dist/src/main/bin/tajo index f06d6a8cbe..58d06fb630 100755 --- a/tajo-dist/src/main/bin/tajo +++ b/tajo-dist/src/main/bin/tajo @@ -339,6 +339,9 @@ for d in $TAJO_JAR_DIRS; do done done +# add CLASSPATH for common UDFs and third-party libraries like JDBC. +TAJO_BASE_CLASSPATH=${TAJO_BASE_CLASSPATH}:$TAJO_HOME/extlib + # add user-specified CLASSPATH last if [ "$TAJO_CLASSPATH" != "" ]; then if [ "$TAJO_USER_CLASSPATH_FIRST" != "" ]; then