Failed to locate the winutils binary in the hadoop binary path  java.io.IOException: Could not locat

来源:互联网 发布:cf数据异常23 0 编辑:程序博客网 时间:2024/06/11 09:05

今天学习了一点hadoop mapreduce框架的一些知识,但是之前不知道怎么在本地跑此程序,所以遇到了一些困难,说下解决思路:

首先,我们要准备hadoop环境,配置hadoop运行环境,跟我们配置java_home一样,唯一区别是在我们还需要hadoop-common-2.2.0-bin-master,将winutils及hadoop.dll导入到我们hadoop bin中并且将其添加到win系统win32中,hadoop相关导入相应的hadoop的jar包运行我们项目即可,否则会报出如下错误:

Failed to locate the winutils binary in the hadoop binary path java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries。

阅读全文
0 0
原创粉丝点击