Description
if the 'hadoop' script is run as 'bin/hadoop' on a distro where the 'cd' command prints to stdout, the script will fail due to this line: 'bin=`cd "$bin"; pwd`'
Workaround: execute from the bin/ directory as './hadoop'
Fix: change that line to 'bin=`cd "$bin" > /dev/null; pwd`'