java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
来源:互联网 发布:电路设计仿真软件 航空 编辑:程序博客网 时间:2024/06/05 15:44
问题出现的原因是hadoop目录bin文件下缺少 winutils.exe 文件;
查看源码:public static final String getQualifiedBinPath(String executable) throws IOException {
String fullExeName = HADOOP_HOME_DIR + File.separator + "bin" + File.separator + executable;
File exeFile = new File(fullExeName);
if (!exeFile.exists()) {
throw new IOException("**Could not locate executable " + fullExeName + " in the Hadoop binaries."**);
} else {
return exeFile.getCanonicalPath();
}
}
前去 https://github.com/srccodes/hadoop-common-2.2.0-bin 下载 winutils.exe
解决办法一:安装hadoop并且配置环境变量
C:\\Program Files\\Hadoop\\hadoop-2.7.3\\bin
C:\\Program Files\\Hadoop\\hadoop-2.7.3\\bin\\winutils.exe
解决办法二:在你的程序中加上
System.setProperty("hadoop.home.dir", "C:\\Program Files\\Hadoop\\hadoop-2.7.3")
加上这么一句话就ok了
阅读全文
0 0
- java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries
- java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries
- java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
- java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries
- java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
- java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
- java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries
- java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
- java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries
- java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries
- java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
- java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
- java.io.IOException: Could not locate executablenull\bin\winutils.exe in the Hadoop binaries
- Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
- Could not locate executable null\bin\winutils.exe in the Hadoop binaries
- Could not locate executable null\bin\winutils.exe in the Hadoop binaries
- could not locate executable null\bin\winutils.exe in the Hadoop binaries.
- Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
- Hadoop的性能问题
- Android Framework学习 -- NFC金融
- Redis Cluster深入与实践
- style-transfer的实现(tensorflow)
- 马里奥吃金币、消失
- java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
- Sass and Compass for Designers.pdf 英文原版 免费下载
- matlab 中tan(x),atan(y/x),atan2(y,x) 总结
- 关于Java中的参数传递问题
- fast RCNN训练车型模块
- 查看mysql数据库表的和最后修改时间
- in-source builds are not allowed
- Struts 2实现文件的上传下载(解除文件大小限制)
- Android单元测试(三):PowerMock框架的使用