hadoop fs -mkdir:没有这样的目录

时间:2019-05-28 10:19:35

标签: hadoop hadoop2

我一直在关注this关于安装Hadoop的文章,并且已经完成了这篇文章。

但是,在尝试创建新的hdfs文件夹时,发生以下错误。

C:\hadoop-2.8.0\bin>hadoop fs -mkdir /user/input
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.hadoop.security.authentication.util.KerberosUtil (file:/C:/hadoop-2.8.0/share/hadoop/common/lib/hadoop-auth-2.8.0.jar) to method sun.security.krb5.Config.getInstance()
WARNING: Please consider reporting this to the maintainers of org.apache.hadoop.security.authentication.util.KerberosUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
mkdir: `/user/input': No such file or directory

这让我很沮丧,因为我试图建立一个文件夹,而不是执行-ls或-put命令。

作为记录,我在Windows 10上以管理员身份运行。

1 个答案:

答案 0 :(得分:0)

使用jps命令检查所有服务是否都已启动并正在运行namenode,datanode等。

此外,尝试配置为Java8。

引用:hadoop-warning-an-illegal-reflective-access-operation