我在window 10 环境下 运行start-all.cmd
hadoop集群的时候报错:.NativeIO$Windows.createDirectoryWithMode0(LJava/lang/String;I)V
,后面通过https://blog.csdn.net/charKim/article/details/77113990和http://f.dataguru.cn/hadoop-554503-1-1.html的分析后终于解决了问题:
解决步骤:
- 删除C:\Windows\System32目录下有hadoop.dll文件。
- 查找和hadoop版本匹配的hadoop.dll文件(我的版本是hadoop 2.7.1),常用hadoop版本hadoop.dll下载地址:https://github.com/steveloughran/winutils
- 下载好后将winutils.exe和hadoop.dll文件复制到hadoop下的bin目录下(不需要复制到C:\Windows\System32目录下)