windows下的eclipse运行hdfs程序时报错 (null) entry in command string: null chmod 0644

在Windows操作系统中使用eclipse本地运行hadoop的hdfs程序,

FileSystem local = FileSystem.getLocal(conf);

使用 FSDataOutputStream out = local.create(localFile);  创建本地文件输出流时,

报以下错误:....(null) entry in command string: null chmod 0644 ..(后面是目的目录)

解决方法:

下载hadoop.dll文件

并拷贝到C:windowssystem32目录中

然后重新启动eclipse即可

hadoop.dll文件下载地址:

链接:https://pan.baidu.com/s/1349cr6P26WHZpg63QxByLQ
提取码:2vd4

转载自:https://www.cnblogs.com/dreamboy/p/11187541.html

原文地址:https://www.cnblogs.com/FengZeng666/p/12708171.html