Why hadoop_home is not set correctly

一个人想着一个人 提交于 2019-12-24 03:06:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!