解决Hadoop报错:Failed to locate the winutils binary in the hadoop binary path

出错的原因在于window本地无法获取hadoop的配置

解决策略:

1.http://archive.apache.org/dist/hadoop/core/hadoop-2.6.0/  下载到本地并解压

D:\software\hadoop-2.6.0

解决Hadoop报错:Failed to locate the winutils binary in the hadoop binary path_第1张图片

2.下载https://github.com/srccodes/hadoop-common-2.2.0-bin到本地并解压

比如D:\software\hadoop-common-2.2.0-bin-master

解决Hadoop报错:Failed to locate the winutils binary in the hadoop binary path_第2张图片

3.将D:\software\hadoop-common-2.2.0-bin-master\bin下的所有文件copy到

D:\software\hadoop-2.6.0\bin下

4.配置环境变量

4.1 添加HADOOP_HOME

解决Hadoop报错:Failed to locate the winutils binary in the hadoop binary path_第3张图片

4.2 修改JAVA_HOME

原来是C:\Program Files\Java\jdk1.8.0_171,因为路径中有空格,所以必须修改为

C:\Progra~1\Java\jdk1.8.0_171

解决Hadoop报错:Failed to locate the winutils binary in the hadoop binary path_第4张图片

4.3 添加CLASSPATH

解决Hadoop报错:Failed to locate the winutils binary in the hadoop binary path_第5张图片

4.4 修改Path

解决Hadoop报错:Failed to locate the winutils binary in the hadoop binary path_第6张图片

4.5 重启windows 验证

win+R   然后输入hadoop version出现如下图则验证成功

解决Hadoop报错:Failed to locate the winutils binary in the hadoop binary path_第7张图片

5.至此解决上述问题

你可能感兴趣的:(大数据)