Hadoop CDh4 Standby HA 启动过程
根据日志:
StandByNN启动过程
1.获得ActiveNNCheckpoints信息
2.在内存中,注册LiveNodes
3.SBNN进入SafeMode
4.从Datanod获取包信息
5.离开SafeMode
CheckpointingactiveNNatbigdata-4:50070
Servingcheckpointsatbigdata-3/172.16.206.206:50070
2012-08-0211:07:24,761INFOorg.apache.hadoop.hdfs.StateChange:BLOCK*NameSystem.registerDatanode:noderegistrationfromDatanodeRegistration(172.16.206.209,storageID=DS-1124007630-172.16.206.209-50010-1343796008920,infoPort=50075,ipcPort=50020,storageInfo=lv=-40;cid=CID-d1f20578-a690-4538-a945-c166fd41cda4;nsid=1959114293;c=0)storageDS-1124007630-172.16.206.209-50010-1343796008920
2012-08-0211:07:24,763INFOorg.apache.hadoop.net.NetworkTopology:Addinganewnode:/default-rack/172.16.206.209:50010
2012-08-0211:07:24,763INFOorg.apache.hadoop.hdfs.StateChange:BLOCK*NameSystem.registerDatanode:noderegistrationfromDatanodeRegistration(172.16.206.206,storageID=DS-1236477555-172.16.206.206-50010-1343796211132,infoPort=50075,ipcPort=50020,storageInfo=lv=-40;cid=CID-d1f20578-a690-4538-a945-c166fd41cda4;nsid=1959114293;c=0)storageDS-1236477555-172.16.206.206-50010-1343796211132
2012-08-0211:07:24,764INFOorg.apache.hadoop.net.NetworkTopology:Addinganewnode:/default-rack/172.16.206.206:50010
2012-08-0211:07:24,995INFOorg.apache.hadoop.hdfs.StateChange:STATE*Safemodeextensionentered.
Thereportedblocks8854hasreachedthethreshold0.9990oftotalblocks8863.Safemodewillbeturnedoffautomaticallyin29seconds.
2012-08-0211:07:24,995INFOorg.apache.hadoop.hdfs.server.blockmanagement.BlockManager:BLOCK*processReport:Receivedfirstblockreportfrom172.16.206.209:50010afterbecomingactive.Itsblockcontentsarenolongerconsideredstale.
2012-08-0211:07:24,996INFOorg.apache.hadoop.hdfs.StateChange:BLOCK*processReport:fromDatanodeRegistration(172.16.206.209,storageID=DS-1124007630-172.16.206.209-50010-1343796008920,infoPort=50075,ipcPort=50020,storageInfo=lv=-40;cid=CID-d1f20578-a690-4538-a945-c166fd41cda4;nsid=1959114293;c=0),blocks:12908,processingtime:84msecs
2012-08-0211:07:25,041INFOorg.apache.hadoop.hdfs.server.blockmanagement.BlockManager:BLOCK*processReport:Receivedfirstblockreportfrom172.16.206.206:50010afterbecomingactive.Itsblockcontentsarenolongerconsideredstale.
2012-08-0211:07:25,041INFOorg.apache.hadoop.hdfs.StateChange:BLOCK*processReport:fromDatanodeRegistration(172.16.206.206,storageID=DS-1236477555-172.16.206.206-50010-1343796211132,infoPort=50075,ipcPort=50020,storageInfo=lv=-40;cid=CID-d1f20578-a690-4538-a945-c166fd41cda4;nsid=1959114293;c=0),blocks:12908,processingtime:45msecs
2012-08-0211:07:44,998INFOorg.apache.hadoop.hdfs.StateChange:STATE*SafemodeON.
Thereportedblocks8863hasreachedthethreshold0.9990oftotalblocks8863.Safemodewillbeturnedoffautomaticallyin9seconds.
2012-08-0211:07:54,999INFOorg.apache.hadoop.hdfs.StateChange:STATE*Leavingsafemodeafter32secs.
2012-08-0211:07:54,999INFOorg.apache.hadoop.hdfs.StateChange:STATE*SafemodeisOFF.
2012-08-0211:07:54,999INFOorg.apache.hadoop.hdfs.StateChange:STATE*Networktopologyhas1racksand2datanodes
2012-08-0211:07:54,999INFOorg.apache.hadoop.hdfs.StateChange:STATE*UnderReplicatedBlockshas0blocks