编译时报错:Could not locate executable null \bin\winutils.exe in the hadoop binaries。
1.下载hadoop-common-2.2.0-bin-master.zip及winutils.zip.
2.将hadoop-common-2.2.0-bin-master.zip解压,其路径作为
hadoop_home。将
winutils.zip解压并将其放入%
hadoop_home%/bin下面。
3.配置环境变量hadoop_home及path。
path,这里使用的是绝对路径,path里面配置的是hadoop的bin路径。配置完毕重启机器
3.配置环境变量hadoop_home及path。
如下图所示
![hadoop编译问题(2)Could <wbr>not <wbr>locate <wbr>executable <wbr>null <wbr>\bin\winutils.exe&n hadoop编译问题(2)Could <wbr>not <wbr>locate <wbr>executable <wbr>null <wbr>\bin\winutils.exe&n](https://i-blog.csdnimg.cn/blog_migrate/a4c26d1e5885305701be709a3d33442f.gif)
![hadoop编译问题(2)Could <wbr>not <wbr>locate <wbr>executable <wbr>null <wbr>\bin\winutils.exe&n hadoop编译问题(2)Could <wbr>not <wbr>locate <wbr>executable <wbr>null <wbr>\bin\winutils.exe&n](https://i-blog.csdnimg.cn/blog_migrate/a4c26d1e5885305701be709a3d33442f.gif)