From c8417af9f788f3e313bedaec6bbd5335c7979ffe Mon Sep 17 00:00:00 2001 From: Jarek Jarcec Cecho Date: Sat, 1 Sep 2012 05:48:00 +0000 Subject: [PATCH] SQOOP-590. Switch Sqoop 2 to Apache Tomcat 6 For Better Integration With Apache Bigtop. (Sean Mackrory via Jarek Jarcec Cecho) git-svn-id: https://svn.apache.org/repos/asf/sqoop/branches/sqoop2@1379694 13f79535-47bb-0310-9956-ffa450edef68 --- dist/pom.xml | 11 +++++++++-- dist/src/main/bin/sqoop.sh | 7 +++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/dist/pom.xml b/dist/pom.xml index 2035480b..ede3be73 100644 --- a/dist/pom.xml +++ b/dist/pom.xml @@ -21,6 +21,13 @@ limitations under the License. 4.0.0 + + 6 + 0.35 + ${tomcat.majorVersion}.${tomcat.minorVersion} + + + org.apache sqoop @@ -72,10 +79,10 @@ limitations under the License. - - + diff --git a/dist/src/main/bin/sqoop.sh b/dist/src/main/bin/sqoop.sh index f644147f..dd2e3231 100755 --- a/dist/src/main/bin/sqoop.sh +++ b/dist/src/main/bin/sqoop.sh @@ -34,6 +34,9 @@ CUR_DIR=`cd $(dirname $(which $0))/..; pwd` cd ${CUR_DIR} echo "Sqoop home directory: ${CUR_DIR}..." +CATALINA_BIN=${CATALINA_BIN:-server/bin} +CLIENT_LIB=${CLIENT_LIB:-client/lib} + COMMAND=$1 case $COMMAND in server) @@ -42,12 +45,12 @@ case $COMMAND in exit fi - server/bin/catalina.sh $2 + $CATALINA_BIN/catalina.sh $2 ;; client) # Build class path with full path to each library - for f in client/lib/*.jar; do + for f in $CLIENT_LIB/*.jar; do CLASSPATH=${CLASSPATH}:`readlink -f $f`; done