NameNode格式化失败问题的解决

时间:2024-03-23 09:57:53


NameNode格式化失败问题的解决

15/04/08 10:05:43 INFO namenode.NameNode: registered UNIX signal handlersfor [TERM, HUP, INT]
15/04/08 10:05:43 INFO namenode.NameNode: createNameNode [-format]
15/04/08 10:05:43 WARN util.NativeCodeLoader: Unable to load native-hadooplibrary for your platform... using builtin-java classes where applicable
Formatting using clusterid: CID-6c167702-ea87-43f6-b1ff-8541a35e2a74
15/04/08 10:05:44 INFO namenode.FSNamesystem: fsLock is fair:true
15/04/08 10:05:44 INFO blockmanagement.DatanodeManager:dfs.block.invalidate.limit=1000
15/04/08 10:05:44 INFO blockmanagement.DatanodeManager: dfs.namenode.datanode.registration.ip-hostname-check=true
15/04/08 10:05:44 INFO blockmanagement.BlockManager:dfs.namenode.startup.delay.block.deletion.sec is set to 000:00:00:00.000
15/04/08 10:05:44 INFO blockmanagement.BlockManager: The block deletion willstart around 2015 Apr 08 10:05:44
15/04/08 10:05:44 INFO util.GSet: Computing capacity for map BlocksMap
15/04/08 10:05:44 INFO util.GSet: VM type       = 64-bit
15/04/08 10:05:44 INFO util.GSet: 2.0% max memory 966.7 MB = 19.3 MB
15/04/08 10:05:44 INFO util.GSet: capacity      = 2^21 = 2097152entries
15/04/08 10:05:44 INFO blockmanagement.BlockManager:dfs.block.access.token.enable=false
15/04/08 10:05:44 INFO blockmanagement.BlockManager: defaultReplication        = 3
15/04/08 10:05:44 INFO blockmanagement.BlockManager: maxReplication            = 512
15/04/08 10:05:44 INFO blockmanagement.BlockManager: minReplication            = 1
15/04/08 10:05:44 INFO blockmanagement.BlockManager: maxReplicationStreams     = 2
15/04/08 10:05:44 INFO blockmanagement.BlockManager: shouldCheckForEnoughRacks = false
15/04/08 10:05:44 INFO blockmanagement.BlockManager: replicationRecheckInterval= 3000
15/04/08 10:05:44 INFO blockmanagement.BlockManager: encryptDataTransfer       = false
15/04/08 10:05:44 INFO blockmanagement.BlockManager: maxNumBlocksToLog         = 1000
15/04/08 10:05:44 INFO namenode.FSNamesystem: fsOwner            = root (auth:SIMPLE)
15/04/08 10:05:44 INFO namenode.FSNamesystem: supergroup         = supergroup
15/04/08 10:05:44 INFO namenode.FSNamesystem: isPermissionEnabled = true
15/04/08 10:05:44 INFO namenode.FSNamesystem: Determined nameservice ID: ns1
15/04/08 10:05:44 INFO namenode.FSNamesystem: HA Enabled: true
15/04/08 10:05:44 INFO namenode.FSNamesystem: Append Enabled: true
15/04/08 10:05:44 INFO util.GSet: Computing capacity for map INodeMap
15/04/08 10:05:44 INFO util.GSet: VM type       = 64-bit
15/04/08 10:05:44 INFO util.GSet: 1.0% max memory 966.7 MB = 9.7 MB
15/04/08 10:05:44 INFO util.GSet: capacity      = 2^20 = 1048576entries
15/04/08 10:05:44 INFO namenode.NameNode: Caching file names occuring more than10 times
15/04/08 10:05:44 INFO util.GSet: Computing capacity for map cachedBlocks
15/04/08 10:05:44 INFO util.GSet: VM type       = 64-bit
15/04/08 10:05:44 INFO util.GSet: 0.25% max memory 966.7 MB = 2.4 MB
15/04/08 10:05:44 INFO util.GSet: capacity      = 2^18 = 262144entries
15/04/08 10:05:44 INFO namenode.FSNamesystem:dfs.namenode.safemode.threshold-pct = 0.9990000128746033
15/04/08 10:05:44 INFO namenode.FSNamesystem: dfs.namenode.safemode.min.datanodes= 0
15/04/08 10:05:44 INFO namenode.FSNamesystem: dfs.namenode.safemode.extension    = 30000
15/04/08 10:05:44 INFO namenode.FSNamesystem: Retry cache on namenode isenabled
15/04/08 10:05:44 INFO namenode.FSNamesystem: Retry cache will use 0.03 oftotal heap and retry cache entry expiry time is 600000 millis
15/04/08 10:05:44 INFO util.GSet: Computing capacity for map NameNodeRetryCache
15/04/08 10:05:44 INFO util.GSet: VM type       = 64-bit
15/04/08 10:05:44 INFO util.GSet: 0.029999999329447746% max memory 966.7 MB =297.0 KB
15/04/08 10:05:44 INFO util.GSet: capacity      = 2^15 = 32768entries
15/04/08 10:05:44 INFO namenode.NNConf: ACLs enabled? false
15/04/08 10:05:44 INFO namenode.NNConf: XAttrs enabled? true
15/04/08 10:05:44 INFO namenode.NNConf: Maximum size of an xattr: 16384
15/04/08 10:05:45 WARN ssl.FileBasedKeyStoresFactory: The property'ssl.client.truststore.location' has not been set, no TrustStore will be loaded
15/04/08 10:05:46 INFO ipc.Client: Retrying connect to server:worker05/192.168.217.15:8485. Already tried 0 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:46 INFO ipc.Client: Retrying connect to server:worker06/192.168.217.16:8485. Already tried 0 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:46 INFO ipc.Client: Retrying connect to server:worker07/192.168.217.17:8485. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10,sleepTime=1000 MILLISECONDS)
15/04/08 10:05:47 INFO ipc.Client: Retrying connect to server:worker05/192.168.217.15:8485. Already tried 1 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:47 INFO ipc.Client: Retrying connect to server:worker06/192.168.217.16:8485. Already tried 1 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:47 INFO ipc.Client: Retrying connect to server:worker07/192.168.217.17:8485. Already tried 1 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:48 INFO ipc.Client: Retrying connect to server:worker05/192.168.217.15:8485. Already tried 2 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:48 INFO ipc.Client: Retrying connect to server:worker07/192.168.217.17:8485. Already tried 2 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:48 INFO ipc.Client: Retrying connect to server:worker06/192.168.217.16:8485. Already tried 2 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:49 INFO ipc.Client: Retrying connect to server:worker05/192.168.217.15:8485. Already tried 3 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:49 INFO ipc.Client: Retrying connect to server:worker07/192.168.217.17:8485. Already tried 3 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:49 INFO ipc.Client: Retrying connect to server:worker06/192.168.217.16:8485. Already tried 3 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:50 INFO ipc.Client: Retrying connect to server:worker05/192.168.217.15:8485. Already tried 4 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:50 INFO ipc.Client: Retrying connect to server:worker06/192.168.217.16:8485. Already tried 4 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:50 INFO ipc.Client: Retrying connect to server:worker07/192.168.217.17:8485. Already tried 4 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:51 INFO ipc.Client: Retrying connect to server:worker07/192.168.217.17:8485. Already tried 5 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:51 INFO ipc.Client: Retrying connect to server:worker05/192.168.217.15:8485. Already tried 5 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:51 INFO ipc.Client: Retrying connect to server:worker06/192.168.217.16:8485. Already tried 5 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:52 INFO ipc.Client: Retrying connect to server:worker05/192.168.217.15:8485. Already tried 6 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:52 INFO ipc.Client: Retrying connect to server:worker07/192.168.217.17:8485. Already tried 6 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:52 INFO ipc.Client: Retrying connect to server:worker06/192.168.217.16:8485. Already tried 6 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:53 INFO ipc.Client: Retrying connect to server:worker05/192.168.217.15:8485. Already tried 7 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:53 INFO ipc.Client: Retrying connect to server:worker07/192.168.217.17:8485. Already tried 7 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:53 INFO ipc.Client: Retrying connect to server:worker06/192.168.217.16:8485. Already tried 7 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:54 INFO ipc.Client: Retrying connect to server:worker05/192.168.217.15:8485. Already tried 8 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:54 INFO ipc.Client: Retrying connect to server: worker07/192.168.217.17:8485.Already tried 8 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:54 INFO ipc.Client: Retrying connect to server:worker06/192.168.217.16:8485. Already tried 8 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:55 INFO ipc.Client: Retrying connect to server:worker05/192.168.217.15:8485. Already tried 9 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:55 INFO ipc.Client: Retrying connect to server:worker07/192.168.217.17:8485. Already tried 9 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:55 INFO ipc.Client: Retrying connect to server:worker06/192.168.217.16:8485. Already tried 9 time(s); retry policy isRetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
15/04/08 10:05:56 WARN namenode.NameNode: Encountered exception duringformat: 
org.apache.hadoop.hdfs.qjournal.client.QuorumException: Unable to check if JNsare ready for formatting. 2 exceptions thrown:
192.168.217.17:8485: Call From worker01/192.168.217.11 to worker07:8485 failedon connection exception: java.net.ConnectException: Connection refused; Formore details see:  http://wiki.apache.org/hadoop/ConnectionRefused
192.168.217.16:8485: Call From worker01/192.168.217.11 to worker06:8485 failedon connection exception: java.net.ConnectException: Connection refused; Formore details see:  http://wiki.apache.org/hadoop/ConnectionRefused
        atorg.apache.hadoop.hdfs.qjournal.client.QuorumException.create(QuorumException.java:81)
        at org.apache.hadoop.hdfs.qjournal.client.QuorumCall.rethrowException(QuorumCall.java:223)
        atorg.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.hasSomeData(QuorumJournalManager.java:232)
        atorg.apache.hadoop.hdfs.server.common.Storage.confirmFormat(Storage.java:875)
        atorg.apache.hadoop.hdfs.server.namenode.FSImage.confirmFormat(FSImage.java:171)
        atorg.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:922)
        atorg.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1354)
        atorg.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1473)
15/04/08 10:05:56 FATAL namenode.NameNode: Exception in namenode join
org.apache.hadoop.hdfs.qjournal.client.QuorumException: Unable to check if JNsare ready for formatting. 2 exceptions thrown:
192.168.217.17:8485: Call From worker01/192.168.217.11 to worker07:8485 failedon connection exception: java.net.ConnectException: Connection refused; Formore details see:  http://wiki.apache.org/hadoop/ConnectionRefused
192.168.217.16:8485: Call From worker01/192.168.217.11 to worker06:8485 failedon connection exception: java.net.ConnectException: Connection refused; Formore details see:  http://wiki.apache.org/hadoop/ConnectionRefused
        at org.apache.hadoop.hdfs.qjournal.client.QuorumException.create(QuorumException.java:81)
        atorg.apache.hadoop.hdfs.qjournal.client.QuorumCall.rethrowException(QuorumCall.java:223)
        atorg.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.hasSomeData(QuorumJournalManager.java:232)
        atorg.apache.hadoop.hdfs.server.common.Storage.confirmFormat(Storage.java:875)
        atorg.apache.hadoop.hdfs.server.namenode.FSImage.confirmFormat(FSImage.java:171)
        atorg.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:922)
        atorg.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1354)
        atorg.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1473)
15/04/08 10:05:56 INFO util.ExitUtil: Exiting with status 1
15/04/08 10:05:56 INFO namenode.NameNode: SHUTDOWN_MSG: 

NameNode格式化失败问题的解决

解决方法:先用./zkServer.sh start 启动各个zookeeper,再用./ hadoop-daemon.sh start journalnode启动各个NodeName上的 JournalNode进程。然后再进行格式化即可。