I'm trying to run all hadoop daemons with the command
./start-all.sh
from the main host cluster. As a result of execution several times gave out
starting namenode, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop--namenode-one.out
192.168.1.10: starting datanode, logging to /export/hadoop-1.0.1/libexec/../logs/hadoop-hadoop-datanode-myhost2.out
192.168.1.10: Error: JAVA_HOME is not set.
And it happened several times even after execution on the virtual machine to the address of 192.168.1.10 commands
hadoop@myhost2:~$ export JAVA_HOME=/opt/jdk1.7.0_06
Tell please how rigidly once and for all to fix the JAVA_HOME variable.