報錯: 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