windows本地调试安装hadoop(idea) : ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path

1,本地安装hadoop  https://mirrors.tuna.tsinghua.edu.cn/apache/hadoop/common/ 下载hadoop对应版本 (我本意是想下载hadoop 2.7.2没有了)
2,  解压D:\devtool
,3,下载winutils 等一系列东西保证windows下能使用hadoop  不然本地调试会报错:ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path
,4,  进入安装目录的bin目录下: D:\devtool\hadoop-2.7.2\bin  把上一步下载解压好的所有文件复制进来
5,  把hadoop.dll文件复制一份到 C盘的windows/system32文件夹下面
6,   配置HADOOP_HOME的环境变量
        新建一个环境变量:(我的电脑右键 属性)
               
       添加到系统的path当中去:
                  
    重启idea  就不会报错了;

猜你喜欢

转载自www.cnblogs.com/spicy/p/9449692.html