avast / hdfs-shell

HDFS Shell is a HDFS manipulation tool to work with functions integrated in Hadoop DFS
Apache License 2.0
150 stars 33 forks source link

Fixing shell scripts to run it outside of bin directory #1

Closed priancho closed 7 years ago

priancho commented 7 years ago

Hi,

First, thank you for a very convenient hdfs shell program! It helps me a lot (especially, I love tab-completion :-)

While trying to use this program, I faced a small problem that I had to run hdfs-shell.sh inside bin directory. This pull requests make hdfs-shell.sh and hdfs-shell-daemon.sh scripts run outside of bin directory by resolving the relative path to ./lib directory (for -cp option) from the current working directory.

Hope this patch helpful for other users.

Best wishes, Han-cheol

Vity01 commented 7 years ago

Thanks for your MR.