[英]Getting "No such file or directory" error when using shell script even though directory successfully moved to target
[英]Getting an error saying "No such file or directory" when using 'put' command in Hadoop
Hadoop 拒绝我将文本文件添加到 HDFS 文件系统的尝试,并显示错误消息“没有此类文件或目录”。 我也尝试过添加不同格式的文件,但结果仍然相同。
我在这里做错了什么? 是我的代码吗?
hdfs dfs -put /home/srikanthamsa/hello.txt /
您当前的用户是hdoop
,它很可能无权从/home/srikanthamsa
读取文件
您的错误与 HDFS 无关。 例如,您应该从cat /home/srikanthamsa/hello.txt
得到相同的错误
也许您应该在/home/hdoop
创建一个文件并尝试将其放入?
或sudo su - srikanthamsa
先
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.