I\'m trying to install Hadoop on Ubuntu 11.10. I set the JAVA_HOME variable in the file conf/hadoop-env.sh to:
# export JAVA_HOME=
I solved this in my env, without modify hadoop-env.sh
You'd be better using /bin/bash as default shell not /bin/sh
Check these before:
echo $JAVA_HOME)echo $SHELL in every node, check if print /bin/bash
if not, vi /etc/passwd, add /bin/bash at tail of your username
ref
Changing default shell in Linux
https://blog.csdn.net/whitehack/article/details/51705889