报错: WARN hdfs.DFSClient: Caught exception java.lang.InterruptedException


1 WARN hdfs.DFSClient: Caught exception 
2 java.lang.InterruptedException

而且日志中没有错误。
官网语句:$ bin/hdfs dfs -put etc/hadoop input
出错语句:$ bin/hdfs dfs -put etc/hadoop /data/hadoop-2.7.3/hdfs

原来是input目录没有按照官网:
$ .bin/hdfs dfs -mkdir /user
$ .bin/hdfs dfs -mkdir /user/<username>
于是重新创建目录:
$ .bin/hdfs dfs -mkdir -p /user/input
$ .bin/hdfs dfs -put etc/hadoop /user/input
就OK了。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM