Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
hdfs_fsck [2015/09/09 10:35]
steve
hdfs_fsck [2015/09/09 10:38]
steve
Line 19: Line 19:
 <​code>​ <​code>​
 hdfs fsck /​user/​root/​sample.txt -files -blocks hdfs fsck /​user/​root/​sample.txt -files -blocks
 +</​code>​
 +
 +<​code>​
 +...
 +/​user/​root/​sample.txt 2633979 bytes, 1 block(s): ​ OK
 +0. BP-1693696885-172.17.0.2-1441734712805:​blk_1073742259_1435 len=2633979 repl=3
 +...
 +</​code>​
 +
 +** Check the health of a file, display the blocks, and which nodes the file is on **
 +
 +<​code>​
 +hdfs fsck /​user/​root/​sample.txt -files -blocks -locations
 +</​code>​
 +
 +<​code>​
 +...
 +0. BP-1693696885-172.17.0.2-1441734712805:​blk_1073742259_1435 len=2633979 repl=3 [172.17.0.2:​50010,​ 172.17.0.3:​50010,​ 172.17.0.4:​50010]
 +...
 </​code>​ </​code>​