报错: 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了。

posted @ 2017-05-31 16:07  quixon  阅读(3856)  评论(0编辑  收藏  举报