diff --git a/deploy/bin/hdfs-shell-daemon.sh b/deploy/bin/hdfs-shell-daemon.sh index 83254cc..7b172d5 100644 --- a/deploy/bin/hdfs-shell-daemon.sh +++ b/deploy/bin/hdfs-shell-daemon.sh @@ -1,2 +1,4 @@ #!/bin/bash -java -Ddaemon=true -Xms200m -Xmx400m -cp ./lib/*:/etc/hadoop/conf com.avast.server.hdfsshell.MainApp "$@" \ No newline at end of file +CWD=$(cd $(dirname $0); pwd) + +java -Ddaemon=true -Xms200m -Xmx400m -cp ${CWD}/lib/*:/etc/hadoop/conf com.avast.server.hdfsshell.MainApp "$@" diff --git a/deploy/bin/hdfs-shell.sh b/deploy/bin/hdfs-shell.sh index f776bf8..15303fe 100644 --- a/deploy/bin/hdfs-shell.sh +++ b/deploy/bin/hdfs-shell.sh @@ -1,2 +1,4 @@ #!/bin/bash -java -Xms200m -Xmx400m -cp ./lib/*:/etc/hadoop/conf com.avast.server.hdfsshell.MainApp "$@" \ No newline at end of file +CWD=$(cd $(dirname $0); pwd) + +java -Xms200m -Xmx400m -cp ${CWD}/lib/*:/etc/hadoop/conf com.avast.server.hdfsshell.MainApp "$@"