Skip to content

Commit

Permalink
Merge pull request #1 from priancho/master
Browse files Browse the repository at this point in the history
Fixing shell scripts to run it outside of bin directory
  • Loading branch information
Vity01 authored Apr 12, 2017
2 parents 5fa6b78 + f0f9d5b commit f29a927
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion deploy/bin/hdfs-shell-daemon.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/bin/bash
java -Ddaemon=true -Xms200m -Xmx400m -cp ./lib/*:/etc/hadoop/conf com.avast.server.hdfsshell.MainApp "$@"
CWD=$(cd $(dirname $0); pwd)

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

java -Xms200m -Xmx400m -cp ${CWD}/lib/*:/etc/hadoop/conf com.avast.server.hdfsshell.MainApp "$@"

0 comments on commit f29a927

Please sign in to comment.