Following Node is down..Please have look on datanode logs and try to make it up...Before going for further action..(like decreasing the replication factor..)
Dead datanodes: Name: 172.18.126.99:50010 (nsda3dmsrpt02.internal.bigpond.com) ________________________________ From: Phan, Truong Q [troung.p...@team.telstra.com] Sent: Thursday, March 20, 2014 10:39 AM To: user@hadoop.apache.org Subject: RE: how to free up space of the old Data Node Hi Battula, I hope Battula is your first name. :P Here are the output of your suggested commands: [root@nsda3dmsrpt02] /usr/lib/hadoop-0.20-mapreduce# sudo -u hdfs hadoop fsck / DEPRECATED: Use of this script to execute hdfs command is deprecated. Instead use the hdfs command for it. Connecting to namenode via http://nsda3dmsrpt02.internal.bigpond.com:50070 FSCK started by hdfs (auth:SIMPLE) from /172.18.126.99 for path / at Thu Mar 20 16:04:35 EST 2014 Status: CORRUPT Total size: 7325542923 B Total dirs: 138 Total files: 383 Total symlinks: 0 (Files currently being written: 2) Total blocks (validated): 424 (avg. block size 17277223 B) ******************************** CORRUPT FILES: 3 MISSING BLOCKS: 3 MISSING SIZE: 791 B CORRUPT BLOCKS: 3 ******************************** Minimally replicated blocks: 421 (99.29245 %) Over-replicated blocks: 0 (0.0 %) Under-replicated blocks: 417 (98.34906 %) Mis-replicated blocks: 0 (0.0 %) Default replication factor: 3 Average block replication: 1.976415 Corrupt blocks: 3 Missing replicas: 417 (33.147854 %) Number of data-nodes: 2 Number of racks: 1 FSCK ended at Thu Mar 20 16:04:35 EST 2014 in 105 milliseconds The filesystem under path '/' is CORRUPT [root@nsda3dmsrpt02] /usr/lib/hadoop-0.20-mapreduce# sudo -u hdfs hadoop dfsadmin -report DEPRECATED: Use of this script to execute hdfs command is deprecated. Instead use the hdfs command for it. Configured Capacity: 1100387597518 (1.00 TB) Present Capacity: 727189155840 (677.25 GB) DFS Remaining: 712401227776 (663.48 GB) DFS Used: 14787928064 (13.77 GB) DFS Used%: 2.03% Under replicated blocks: 420 Blocks with corrupt replicas: 0 Missing blocks: 3 ------------------------------------------------- Datanodes available: 2 (3 total, 1 dead) Live datanodes: Name: 172.18.127.248:50010 (bpdevdmsdbs02) Hostname: bpdevdmsdbs02 Rack: /default Decommission Status : Normal Configured Capacity: 550193798759 (512.41 GB) DFS Used: 7394033664 (6.89 GB) Non DFS Used: 169131224679 (157.52 GB) DFS Remaining: 373668540416 (348.01 GB) DFS Used%: 1.34% DFS Remaining%: 67.92% Last contact: Thu Mar 20 16:05:44 EST 2014 Name: 172.18.127.245:50010 (bpdevdmsdbs01) Hostname: bpdevdmsdbs01 Rack: /default Decommission Status : Normal Configured Capacity: 550193798759 (512.41 GB) DFS Used: 7393894400 (6.89 GB) Non DFS Used: 204067216999 (190.05 GB) DFS Remaining: 338732687360 (315.47 GB) DFS Used%: 1.34% DFS Remaining%: 61.57% Last contact: Thu Mar 20 16:05:44 EST 2014 Dead datanodes: Name: 172.18.126.99:50010 (nsda3dmsrpt02.internal.bigpond.com) Hostname: nsda3dmsrpt02.internal.bigpond.com Rack: /default Decommission Status : Normal Configured Capacity: 0 (0 B) DFS Used: 0 (0 B) Non DFS Used: 0 (0 B) DFS Remaining: 0 (0 B) DFS Used%: 100.00% DFS Remaining%: 0.00% Last contact: Wed Mar 19 11:44:44 EST 2014 Thanks and Regards, Truong Phan P + 61 2 8576 5771 M + 61 4 1463 7424 E troung.p...@team.telstra.com W www.telstra.com<https://email-cn.huawei.com/owa/UrlBlockedError.aspx> From: Brahma Reddy Battula [mailto:brahmareddy.batt...@huawei.com] Sent: Thursday, 20 March 2014 3:27 PM To: user@hadoop.apache.org Subject: RE: how to free up space of the old Data Node Please check my inline comments which are in blue color... ________________________________ From: Phan, Truong Q [troung.p...@team.telstra.com] Sent: Thursday, March 20, 2014 8:04 AM To: user@hadoop.apache.org<mailto:user@hadoop.apache.org> Subject: how to free up space of the old Data Node Hi I have 3 nodes Hadoop cluster in which I created 3 Data Nodes. However, I don’t have enough space in one of the node to cater other projects’ log. So I decommissioned this node from a Data node list but I could not re-claimed the space from it. >>> is your Replication is 3..? If it is 3 and as you have 3 datanodes,ideally >>> disk space occupied by all nodes should be same(47G, should be present in >>> all the DN's).. >>>And if you RF=3,Decommission will not be success as you've only 3 DN's..you >>>need to add another DN to cluster,,then only decommission will be success.. Hence please mention the replication factor of the file.. Is there a way to get this node to release space? >>> ways are there,,but you need to mention, why only this node disk is >>> full..why not other nodes..? is it because,this node is having less space >>> compared to other nodes >>> If RF=3, then make RF=2(decrease the replication factor)..then do >>> decommission of this node [root@nsda3dmsrpt02] /data/dfs/dn# du -sh /data/dfs/dn/* 47G /data/dfs/dn/current >>> try to give the following output also sudo -u hdfs hadoop fsck / sudo -u hdfs hadoop dfsadmin -report $ sudo -u hdfs hadoop fsck /data DEPRECATED: Use of this script to execute hdfs command is deprecated. Instead use the hdfs command for it. Status: HEALTHY Total size: 7186453688 B Total dirs: 11 Total files: 62 Total symlinks: 0 Total blocks (validated): 105 (avg. block size 68442416 B) Minimally replicated blocks: 105 (100.0 %) Over-replicated blocks: 0 (0.0 %) Under-replicated blocks: 105 (100.0 %) Mis-replicated blocks: 0 (0.0 %) Default replication factor: 3 Average block replication: 2.0 Corrupt blocks: 0 Missing replicas: 105 (33.333332 %) Number of data-nodes: 2 Number of racks: 1 FSCK ended at Thu Mar 20 13:30:03 EST 2014 in 22 milliseconds The filesystem under path '/data' is HEALTHY Thanks and Regards, Truong Phan Senior Technology Specialist Database Engineering Transport & Routing Engineering | Networks | Telstra Operations [Telstra] P + 61 2 8576 5771 M + 61 4 1463 7424 E troung.p...@team.telstra.com<mailto:troung.p...@team.telstra.com> W www.telstra.com<https://email-cn.huawei.com/owa/UrlBlockedError.aspx> Love the movies? Telstra takes you there with $10 movie tickets, just to say thanks. Available now at telstra.com/movies<http://www.telstra.com/movies> This communication may contain confidential or copyright information of Telstra Corporation Limited (ABN 33 051 775 556). If you are not an intended recipient, you must not keep, forward, copy, use, save or rely on this communication, and any such action is unauthorised and prohibited. If you have received this communication in error, please reply to this email to notify the sender of its incorrect delivery, and then delete both it and your reply.
<<inline: image001.gif>>