问题
I install hadoop 2.3 for windows folling this instruction: https://www.youtube.com/watch?v=VhxWig96dME
And I can get it work very well on my windows 8 on my Macbook.
However when I repeat the same steps on my windows server, and when I run command line: hadoop
it shows this error:
HADOOP_HOME is not set correctly
I check again very carefully and find that HADOOP_HOME is set very precisely (as in instruction and in my previous setup on laptop). So what could be the problem and how to fix it ? Is there any different between setting up for laptop and server ? I notice that when I run the same java installation file (java se: chromeinstall-8u45.exe), it give the different results on laptop and server (different number of directories).
回答1:
Do not set or use HADOOP_HOME; it is an unsupported env-var in CDH4 onwards. Instead, map your HDFS directory to "HADOOP_PREFIX" instead.
来源:https://stackoverflow.com/questions/29880475/why-hadoop-home-is-not-set-correctly