TAJO-1646: Add extlib directory for third-party libraries. Closes #603
Project: http://git-wip-us.apache.org/repos/asf/tajo/repo Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/ec46798c Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/ec46798c Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/ec46798c Branch: refs/heads/index_support Commit: ec46798c117130593ecbc0ec236ec9351f2aa1c3 Parents: d926247 Author: Hyunsik Choi <[email protected]> Authored: Thu Jun 18 19:21:53 2015 -0700 Committer: Hyunsik Choi <[email protected]> Committed: Thu Jun 18 19:21:53 2015 -0700 ---------------------------------------------------------------------- CHANGES | 2 ++ tajo-dist/pom.xml | 2 ++ tajo-dist/src/main/bin/tajo | 3 +++ 3 files changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tajo/blob/ec46798c/CHANGES ---------------------------------------------------------------------- diff --git a/CHANGES b/CHANGES index 57b8baa..0440302 100644 --- a/CHANGES +++ b/CHANGES @@ -27,6 +27,8 @@ Release 0.11.0 - unreleased IMPROVEMENT + TAJO-1646: Add extlib directory for third-party libraries. (hyunsik) + TAJO-1636: query rest api uri should change from /databases/{database_name}/queies to /queries. (Contributed by DaeMyung Kang, Committed by jaehwa) http://git-wip-us.apache.org/repos/asf/tajo/blob/ec46798c/tajo-dist/pom.xml ---------------------------------------------------------------------- diff --git a/tajo-dist/pom.xml b/tajo-dist/pom.xml index 0cc61aa..cd08b3d 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/ http://git-wip-us.apache.org/repos/asf/tajo/blob/ec46798c/tajo-dist/src/main/bin/tajo ---------------------------------------------------------------------- diff --git a/tajo-dist/src/main/bin/tajo b/tajo-dist/src/main/bin/tajo index f06d6a8..58d06fb 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
