{"id":6646,"date":"2017-04-13T15:02:57","date_gmt":"2017-04-13T07:02:57","guid":{"rendered":"http:\/\/rmohan.com\/?p=6646"},"modified":"2017-04-13T15:02:57","modified_gmt":"2017-04-13T07:02:57","slug":"useful-commands-for-hadoop-hdfs-troubleshooting","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6646","title":{"rendered":"Useful commands for Hadoop HDFS troubleshooting"},"content":{"rendered":"<p>[hadoop@master ~]$ hdfs dfsadmin -report<br \/>\n17\/04\/13 00:06:51 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform&#8230; using builtin-java classes where applicable<br \/>\nConfigured Capacity: 37576769536 (35.00 GB)<br \/>\nPresent Capacity: 33829806080 (31.51 GB)<br \/>\nDFS Remaining: 33829789696 (31.51 GB)<br \/>\nDFS Used: 16384 (16 KB)<br \/>\nDFS Used%: 0.00%<br \/>\nUnder replicated blocks: 0<br \/>\nBlocks with corrupt replicas: 0<br \/>\nMissing blocks: 0<br \/>\nMissing blocks (with replication factor 1): 0<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nLive datanodes (2):<\/p>\n<p>Name: 192.168.1.82:50010 (lab2.rmohan.com)<br \/>\nHostname: lab2.rmohan.com<br \/>\nDecommission Status : Normal<br \/>\nConfigured Capacity: 18788384768 (17.50 GB)<br \/>\nDFS Used: 8192 (8 KB)<br \/>\nNon DFS Used: 1873375232 (1.74 GB)<br \/>\nDFS Remaining: 16915001344 (15.75 GB)<br \/>\nDFS Used%: 0.00%<br \/>\nDFS Remaining%: 90.03%<br \/>\nConfigured Cache Capacity: 0 (0 B)<br \/>\nCache Used: 0 (0 B)<br \/>\nCache Remaining: 0 (0 B)<br \/>\nCache Used%: 100.00%<br \/>\nCache Remaining%: 0.00%<br \/>\nXceivers: 1<br \/>\nLast contact: Thu Apr 13 00:06:49 SGT 2017<br \/>\nName: 192.168.1.81:50010 (lab1.rmohan.com)<br \/>\nHostname: lab1.rmohan.com<br \/>\nDecommission Status : Normal<br \/>\nConfigured Capacity: 18788384768 (17.50 GB)<br \/>\nDFS Used: 8192 (8 KB)<br \/>\nNon DFS Used: 1873588224 (1.74 GB)<br \/>\nDFS Remaining: 16914788352 (15.75 GB)<br \/>\nDFS Used%: 0.00%<br \/>\nDFS Remaining%: 90.03%<br \/>\nConfigured Cache Capacity: 0 (0 B)<br \/>\nCache Used: 0 (0 B)<br \/>\nCache Remaining: 0 (0 B)<br \/>\nCache Used%: 100.00%<br \/>\nCache Remaining%: 0.00%<br \/>\nXceivers: 1<br \/>\nLast contact: Thu Apr 13 00:06:49 SGT 2017<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[hadoop@master ~]$ hdfs dfsadmin -report 17\/04\/13 00:06:51 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform&#8230; using builtin-java classes where applicable Configured Capacity: 37576769536 (35.00 GB) Present Capacity: 33829806080 (31.51 GB) DFS Remaining: 33829789696 (31.51 GB) DFS Used: 16384 (16 KB) DFS Used%: 0.00% Under replicated blocks: 0 Blocks with corrupt replicas: 0 Missing [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6646"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6646"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6646\/revisions"}],"predecessor-version":[{"id":6647,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6646\/revisions\/6647"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}