版权声明:路漫漫其修远兮,吾将上下而求索。 https://blog.csdn.net/Happy_Sunshine_Boy/article/details/85055217
解决Wrong FS: hdfs://192.168.1.37:8020/user/tgm, expected: file:///
- 添加conf配置
Configuration conf = new Configuration();
conf.set("mapred.jop.tracker", "hdfs://192.168.1.37:8020");
conf.set("fs.default.name", "hdfs://192.168.1.37:8020");
解决Could not locate executable null\bin\winutils.exe问题
- 代码中添加
System.setProperty("hadoop.home.dir", "D:\\hadoop-2.6.5");