-1
# #sudo -u hdfs hadoop -mkdir test
# #sudo -u hdfs hadoop fs -put /root/hadoop-2.0.4-alpha/share/hadoop/mapreduce/word.txt    test
put: `/root/hadoop-2.0.4-alpha/share/hadoop/mapreduce/word.txt': No such file or directory

I am sure the file word.txt is there!  

And I browse hdfs from CM web UI http://xxx.xx.xx.xx:7180/cmf/services/25/hdfs/browse  
got Reports Manager () the connection is unavailable or unresponsive.
What is the problem? can any one help? pleases! Thanks in advance!

我跑:

#sudo -u hdfs hadoop fs -ls -R /
.........<hr />
.....<hr />

drwxrwxrwt - hdfs 超级组 0 2013-06-06 23:40 /tmp


drwxrwxrwx - hdfs 超级组 0 2013-06-07 09:58 /tmp/.cloudera_health_monitoring_canary_files
drwxr-xr-x - mapred 超级组 0 2013-06-06 14:46 /tmp/mapred
drwx---------mapred 超级组 0 2013-06-06 16:36 /tmp/mapred/system
-rw------- 3 mapred supergroup 4 2013-06-06 16:36 /tmp/mapred/system/jobtracker.info
drwxr-xr-x - hdfs 超级组 0 2013-06-06 17:12 /用户
drwxr-xr-x - hdfs 超级组 0 2013-06-06 22:59 /user/hdfs
drwx------ hdfs 超级组 0 2013-06-07 08:00 /user/hdfs/.Trash
drwx------ hdfs 超级组 0 2013-06-06 23:40 /user/hdfs/.Trash/130607080000
drwx------ hdfs 超级组 0 2013-06-06 23:40 /user/hdfs/.Trash/130607080000/tmp
drwxrwxrwx - hdfs 超级组 0 2013-06-06 23:39 /user/hdfs/.Trash/130607080000/tmp/.cloudera_health_monitoring_canary_files
drwx------ hdfs 超级组 0 2013-06-06 22:58 /user/hdfs/.Trash/130607080000/user
drwx------ hdfs 超级组 0 2013-06-06 22:58 /user/hdfs/.Trash/130607080000/user/hdfs
drwxr-xr-x - hdfs 超级组 0 2013-06-06 17:12 /user/hdfs/.Trash/130607080000/user/hdfs/test
drwxr-xr-x - hdfs 超级组 0 2013-06-06 22:59 /user/hdfs/test
.....................
...........

>The log hdfs i got is:

2013-06-07 10:00:51,243 INFO org.apache.hadoop.hdfs.StateChange: DIR*    completeFile: /tmp/.cloudera_health_monitoring_canary_files/.canary_file_2013_06_07-10_00_51 is closed by DFSClient_NONMAPREDUCE_57683786_107
2013-06-07 10:00:51,254 INFO org.apache.hadoop.hdfs.server.namenode.FSEditLog: Number of transactions: 91 Total time for transactions(ms): 4Number of transactions batched in Syncs: 0 Number of syncs: 46 SyncTimes(ms): 306
2013-06-07 10:00:51,262 INFO BlockStateChange: BLOCK* addToInvalidates: blk_-7087383405853393980_3513 192.168.93.85:50010 192.168.93.108:50010 192.168.93.86:50010
2013-06-07 10:00:52,511 INFO org.apache.hadoop.hdfs.StateChange: BLOCK* InvalidateBlocks: ask 192.168.93.108:50010 to delete [blk_-7087383405853393980_3513]
2013-06-07 10:00:55,511 INFO org.apache.hadoop.hdfs.StateChange: BLOCK* InvalidateBlocks: ask 192.168.93.86:50010 to delete [blk_-7087383405853393980_3513]
2013-06-07 10:00:58,511 INFO org.apache.hadoop.hdfs.StateChange: BLOCK* InvalidateBlocks: ask 192.168.93.85:50010 to delete [blk_-7087383405853393980_3513]
4

1 回答 1

0

你的 hdfs 用户是否有阅读权限

/root/hadoop-2.0.4-alpha/share/hadoop/mapreduce/word.txt

/root/hadoop-2.0.4-alpha/share/hadoop/mapreduce/

ls -l

检查 word.txt 的权限是什么

将其设为 777,然后重试

于 2013-06-07T04:27:55.690 回答