Skip to content

Commit 6b2a067

Browse files
author
hancheol.cho
committed
Can run hdfs-shell.sh and hdfs-shell-daemon.sh scripts from anywhere.
1 parent 5fa6b78 commit 6b2a067

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

deploy/bin/hdfs-shell-daemon.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
#!/bin/bash
2-
java -Ddaemon=true -Xms200m -Xmx400m -cp ./lib/*:/etc/hadoop/conf com.avast.server.hdfsshell.MainApp "$@"
2+
CWD=$(cd $(dirname $0); pwd)
3+
4+
java -Ddaemon=true -Xms200m -Xmx400m -cp ${CWD}/lib/*:/etc/hadoop/conf com.avast.server.hdfsshell.MainApp "$@"

deploy/bin/hdfs-shell.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
#!/bin/bash
2-
java -Xms200m -Xmx400m -cp ./lib/*:/etc/hadoop/conf com.avast.server.hdfsshell.MainApp "$@"
2+
CWD=$(cd $(dirname $0); pwd)
3+
4+
java -Xms200m -Xmx400m -cp ${CWD}/lib/*:/etc/hadoop/conf com.avast.server.hdfsshell.MainApp "$@"

0 commit comments

Comments
 (0)