1)、java.io.IOException: HADOOP_HOME or hadoop.home.dir are not set.
2)java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
解决方式1)人家提示HADOOP_HOME没有设置,那就配置windows的环境变量,定位到hadoop目录
运行报:
第一项不报了,第二项继续: 2)java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
说不能定位,看来是HADOOP_HOME没起作用,那就在main里添加代码,否则不报null: