bin/hdfs namenode -format报错

************************************************************/
20/01/20 11:42:47 INFO namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]
20/01/20 11:42:47 INFO namenode.NameNode: createNameNode [-format]
Formatting using clusterid: CID-cee53f3e-41fb-473c-b97f-33d206a8785e
20/01/20 11:42:48 INFO namenode.FSNamesystem: No KeyProvider found.
20/01/20 11:42:48 INFO namenode.FSNamesystem: fsLock is fair:true
20/01/20 11:42:48 INFO blockmanagement.DatanodeManager: dfs.block.invalidate.limit=1000
20/01/20 11:42:48 INFO blockmanagement.DatanodeManager: dfs.namenode.datanode.registration.ip-hostname-check=true
20/01/20 11:42:48 INFO blockmanagement.BlockManager: dfs.namenode.startup.delay.block.deletion.sec is set to 000:00:00:00.000
20/01/20 11:42:48 INFO blockmanagement.BlockManager: The block deletion will start around 2020 Jan 20 11:42:48
20/01/20 11:42:48 INFO util.GSet: Computing capacity for map BlocksMap
20/01/20 11:42:48 INFO util.GSet: VM type       = 64-bit
20/01/20 11:42:48 INFO util.GSet: 2.0% max memory 889 MB = 17.8 MB
20/01/20 11:42:48 INFO util.GSet: capacity      = 2^21 = 2097152 entries
20/01/20 11:42:48 INFO blockmanagement.BlockManager: dfs.block.access.token.enable=false
20/01/20 11:42:48 INFO blockmanagement.BlockManager: defaultReplication         = 3
20/01/20 11:42:48 INFO blockmanagement.BlockManager: maxReplication             = 512
20/01/20 11:42:48 INFO blockmanagement.BlockManager: minReplication             = 1
20/01/20 11:42:48 INFO blockmanagement.BlockManager: maxReplicationStreams      = 2
20/01/20 11:42:48 INFO blockmanagement.BlockManager: replicationRecheckInterval = 3000
20/01/20 11:42:48 INFO blockmanagement.BlockManager: encryptDataTransfer        = false
20/01/20 11:42:48 INFO blockmanagement.BlockManager: maxNumBlocksToLog          = 1000
20/01/20 11:42:48 INFO namenode.FSNamesystem: fsOwner             = atguigu (auth:SIMPLE)
20/01/20 11:42:48 INFO namenode.FSNamesystem: supergroup          = supergroup
20/01/20 11:42:48 INFO namenode.FSNamesystem: isPermissionEnabled = true
20/01/20 11:42:48 INFO namenode.FSNamesystem: Determined nameservice ID: mycluster
20/01/20 11:42:48 INFO namenode.FSNamesystem: HA Enabled: true
20/01/20 11:42:48 INFO namenode.FSNamesystem: Append Enabled: true
20/01/20 11:42:48 INFO util.GSet: Computing capacity for map INodeMap
20/01/20 11:42:48 INFO util.GSet: VM type       = 64-bit
20/01/20 11:42:48 INFO util.GSet: 1.0% max memory 889 MB = 8.9 MB
20/01/20 11:42:48 INFO util.GSet: capacity      = 2^20 = 1048576 entries
20/01/20 11:42:48 INFO namenode.FSDirectory: ACLs enabled? false
20/01/20 11:42:48 INFO namenode.FSDirectory: XAttrs enabled? true
20/01/20 11:42:48 INFO namenode.FSDirectory: Maximum size of an xattr: 16384
20/01/20 11:42:48 INFO namenode.NameNode: Caching file names occuring more than 10 times
20/01/20 11:42:48 INFO util.GSet: Computing capacity for map cachedBlocks
20/01/20 11:42:48 INFO util.GSet: VM type       = 64-bit
20/01/20 11:42:48 INFO util.GSet: 0.25% max memory 889 MB = 2.2 MB
20/01/20 11:42:48 INFO util.GSet: capacity      = 2^18 = 262144 entries
20/01/20 11:42:48 INFO namenode.FSNamesystem: dfs.namenode.safemode.threshold-pct = 0.9990000128746033
20/01/20 11:42:48 INFO namenode.FSNamesystem: dfs.namenode.safemode.min.datanodes = 0
20/01/20 11:42:48 INFO namenode.FSNamesystem: dfs.namenode.safemode.extension     = 30000
20/01/20 11:42:48 INFO metrics.TopMetrics: NNTop conf: dfs.namenode.top.window.num.buckets = 10
20/01/20 11:42:48 INFO metrics.TopMetrics: NNTop conf: dfs.namenode.top.num.users = 10
20/01/20 11:42:48 INFO metrics.TopMetrics: NNTop conf: dfs.namenode.top.windows.minutes = 1,5,25
20/01/20 11:42:48 INFO namenode.FSNamesystem: Retry cache on namenode is enabled
20/01/20 11:42:48 INFO namenode.FSNamesystem: Retry cache will use 0.03 of total heap and retry cache entry expiry time is 600000 millis
20/01/20 11:42:48 INFO util.GSet: Computing capacity for map NameNodeRetryCache
20/01/20 11:42:48 INFO util.GSet: VM type       = 64-bit
20/01/20 11:42:48 INFO util.GSet: 0.029999999329447746% max memory 889 MB = 273.1 KB
20/01/20 11:42:48 INFO util.GSet: capacity      = 2^15 = 32768 entries
20/01/20 11:42:48 WARN client.QuorumJournalManager: Quorum journal URI 'qjournal://node39:8485;node40:8485;node41:8485;hadoop42:8485/mycluster' has an even number of Journal Nodes specified. This is not recommended!
20/01/20 11:42:59 ERROR namenode.NameNode: Failed to start namenode.
java.lang.IllegalArgumentException: Unable to construct journal, qjournal://node39:8485;node40:8485;node41:8485;hadoop42:8485/mycluster
        at org.apache.hadoop.hdfs.server.namenode.FSEditLog.createJournal(FSEditLog.java:1638)
        at org.apache.hadoop.hdfs.server.namenode.FSEditLog.initJournals(FSEditLog.java:282)
        at org.apache.hadoop.hdfs.server.namenode.FSEditLog.initJournalsForWrite(FSEditLog.java:247)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:985)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1429)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1554)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.apache.hadoop.hdfs.server.namenode.FSEditLog.createJournal(FSEditLog.java:1636)
        ... 5 more
Caused by: java.lang.NullPointerException
        at org.apache.hadoop.hdfs.qjournal.client.IPCLoggerChannelMetrics.getName(IPCLoggerChannelMetrics.java:107)
        at org.apache.hadoop.hdfs.qjournal.client.IPCLoggerChannelMetrics.create(IPCLoggerChannelMetrics.java:91)
        at org.apache.hadoop.hdfs.qjournal.client.IPCLoggerChannel.(IPCLoggerChannel.java:178)
        at org.apache.hadoop.hdfs.qjournal.client.IPCLoggerChannel$1.createLogger(IPCLoggerChannel.java:156)
        at org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.createLoggers(QuorumJournalManager.java:367)
        at org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.createLoggers(QuorumJournalManager.java:149)
        at org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.(QuorumJournalManager.java:116)
        at org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager.(QuorumJournalManager.java:105)
        ... 10 more
20/01/20 11:42:59 INFO util.ExitUtil: Exiting with status 1
20/01/20 11:42:59 INFO namenode.NameNode: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at node39.clustere.com/192.168.21.39
************************************************************/

你可能感兴趣的:(bin/hdfs namenode -format报错)