mirror of
https://github.com/apache/sqoop.git
synced 2025-05-07 00:39:46 +08:00
SQOOP-573: Do not change working directory for client
git-svn-id: https://svn.apache.org/repos/asf/sqoop/branches/sqoop2@1376667 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c32afa5aea
commit
fcef44e4d4
6
dist/src/main/bin/sqoop.sh
vendored
6
dist/src/main/bin/sqoop.sh
vendored
@ -46,10 +46,14 @@ case $COMMAND in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
client)
|
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}:$f;
|
CLASSPATH=${CLASSPATH}:`readlink -f $f`;
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# We need to change current directory back to original as optional user side script
|
||||||
|
# might be specified with relative path.
|
||||||
|
cd ${OLD_DIR}
|
||||||
java -classpath ${CLASSPATH} org.apache.sqoop.client.shell.SqoopShell $2
|
java -classpath ${CLASSPATH} org.apache.sqoop.client.shell.SqoopShell $2
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user