当前位置:   article > 正文

解决HADOOP_HOME and hadoop.home.dir are unset.异常问题_hadoop home and hadoop.home.dir

hadoop home and hadoop.home.dir

报错:

java.io.FileNotFoundException: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset. -see https://wiki.apache.org/hadoop/WindowsProblems

我在Windows环境下 运行MapReduce程序时遇到这个异常,其原因是windows下的环境与Linux环境不同,而Hadoop一般基于Linux系统运行,因此需要一系列辅助程序才能运行。

解决方法:

github:GitHub - steveloughran/winutils: Windows binaries for Hadoop versions (built from the git commit ID used for the ASF relase)

 下载对应版本号的文件(找不到对应版本建议找最近版本),解压到任意目录下。然后在windows配置环境变量:

PATH中:

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/976583
推荐阅读
相关标签
  

闽ICP备14008679号