I have this simple script:
#!/bin/bash
echo ${HADOOP_HOME}
$(hadoop fs -ls)
The output is:
/opt/hadoop-0.20.2-cdh3u2
./hello.sh: line 3: Found: command not found
So bash definitely sees HADOOP_HOME. I've set it in ~/.profile and added path to bin folder:
export HADOOP_HOME="/opt/hadoop-0.20.2-cdh3u2"
export PATH=$PATH:$HADOOP_HOME/bin
If I simply invoke command in console everything works but inside a script it doesn't. What am I doing wrong?