Skip to content

Commit f29a927

Browse files
authored
Merge pull request #1 from priancho/master
Fixing shell scripts to run it outside of bin directory
2 parents 5fa6b78 + f0f9d5b commit f29a927

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)