将本地input 文件夹的数据上传到hdfs的input文件夹出错

输入命令$./bin/hadoop dfs -put ./input
出现错误put: File /user/hadoop/input/yarn-site.xml.COPYING could only be replicated to 0 nodes instead of minReplication (=1). There are 0 datanode(s) running and no node(s) are excluded in this operation.

这是为什么呢

只能传文件,不能传文件夹,而且只能传数据表格式的文件

你没有数据节点存放数据

看一下日志信息