hadoop2.6.0在格式化时异常,启动失败

ssscccche 2015-11-21 03:50:55
求各位帮看看,本人自学hadoop,在搭建时出现了问题,各种查也没弄明白,求助,希望好心人能留下QQ,进行详聊
[zhm@Master hadoop-2.6.0]$ ./bin/hdfs namenode -format
15/11/21 03:33:27 INFO namenode.NameNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG: host = Master.Hadoop/10.171.19.68
STARTUP_MSG: args = [-format]
STARTUP_MSG: version = 2.6.0
STARTUP_MSG: classpath = /home/zhm/hadoop/hadoop-2.6.0/etc/hadoop:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/commons-lang-2.6.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/commons-collections-3.2.1.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/stax-api-1.0-2.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/gson-2.2.4.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/paranamer-2.3.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/apacheds-kerberos-codec-2.0.0-M15.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/protobuf-java-2.5.0.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/jersey-server-1.9.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/commons-codec-1.4.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/jackson-jaxrs-1.9.13.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/jets3t-0.9.0.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/guava-11.0.2.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/apacheds-i18n-2.0.0-M15.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/httpclient-4.2.5.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/jackson-mapper-asl-1.9.13.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/commons-el-1.0.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/mockito-all-1.8.5.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/api-util-1.0.0-M20.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/commons-beanutils-1.7.0.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/hadoop-auth-2.6.0.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/commons-io-2.4.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/jasper-compiler-5.5.23.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/jersey-json-1.9.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/hadoop-annotations-2.6.0.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/htrace-core-3.0.4.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/jettison-1.1.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/curator-recipes-2.6.0.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/hamcrest-core-1.3.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/jaxb-api-2.2.2.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/commons-math3-3.1.1.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/jackson-xc-1.9.13.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/httpcore-4.2.5.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/xz-1.0.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/jasper-runtime-5.5.23.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/commons-net-3.1.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/commons-compress-1.4.1.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/curator-client-2.6.0.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/junit-4.11.jar:/home/zhm/hadoop/hadoop-2.6.0/share/hadoop/common/lib/slf4j-api-1.7.5.jar:
STARTUP_MSG: build = Unknown -r Unknown; compiled by 'root' on 2014-12-23T03:59Z
STARTUP_MSG: java = 1.8.0_65
************************************************************/
15/11/21 03:33:27 INFO namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]
15/11/21 03:33:27 INFO namenode.NameNode: createNameNode [-format]
Formatting using clusterid: CID-d128a1bd-c057-4749-bb58-b7511d4cfc9c
15/11/21 03:33:28 INFO namenode.FSNamesystem: No KeyProvider found.
15/11/21 03:33:28 INFO namenode.FSNamesystem: fsLock is fair:true
15/11/21 03:33:28 INFO blockmanagement.DatanodeManager: dfs.block.invalidate.limit=1000
15/11/21 03:33:28 INFO blockmanagement.DatanodeManager: dfs.namenode.datanode.registration.ip-hostname-check=true
15/11/21 03:33:28 INFO blockmanagement.BlockManager: dfs.namenode.startup.delay.block.deletion.sec is set to 000:00:00:00.000
15/11/21 03:33:28 INFO blockmanagement.BlockManager: The block deletion will start around 2015 Nov 21 03:33:28
15/11/21 03:33:28 INFO util.GSet: Computing capacity for map BlocksMap
15/11/21 03:33:28 INFO util.GSet: VM type = 64-bit
15/11/21 03:33:28 INFO util.GSet: 2.0% max memory 966.7 MB = 19.3 MB
15/11/21 03:33:28 INFO util.GSet: capacity = 2^21 = 2097152 entries
15/11/21 03:33:28 INFO blockmanagement.BlockManager: dfs.block.access.token.enable=false
15/11/21 03:33:28 INFO blockmanagement.BlockManager: defaultReplication = 2
15/11/21 03:33:28 INFO blockmanagement.BlockManager: maxReplication = 512
15/11/21 03:33:28 INFO blockmanagement.BlockManager: minReplication = 1
15/11/21 03:33:28 INFO blockmanagement.BlockManager: maxReplicationStreams = 2
15/11/21 03:33:28 INFO blockmanagement.BlockManager: shouldCheckForEnoughRacks = false
15/11/21 03:33:28 INFO blockmanagement.BlockManager: replicationRecheckInterval = 3000
15/11/21 03:33:28 INFO blockmanagement.BlockManager: encryptDataTransfer = false
15/11/21 03:33:28 INFO blockmanagement.BlockManager: maxNumBlocksToLog = 1000
15/11/21 03:33:28 INFO namenode.FSNamesystem: fsOwner = zhm (auth:SIMPLE)
15/11/21 03:33:28 INFO namenode.FSNamesystem: supergroup = supergroup
15/11/21 03:33:28 INFO namenode.FSNamesystem: isPermissionEnabled = true
15/11/21 03:33:28 INFO namenode.FSNamesystem: HA Enabled: false
15/11/21 03:33:28 INFO namenode.FSNamesystem: Append Enabled: true
15/11/21 03:33:29 INFO util.GSet: Computing capacity for map INodeMap
15/11/21 03:33:29 INFO util.GSet: VM type = 64-bit
15/11/21 03:33:29 INFO util.GSet: 1.0% max memory 966.7 MB = 9.7 MB
15/11/21 03:33:29 INFO util.GSet: capacity = 2^20 = 1048576 entries
15/11/21 03:33:29 INFO namenode.NameNode: Caching file names occuring more than 10 times
15/11/21 03:33:29 INFO util.GSet: Computing capacity for map cachedBlocks
15/11/21 03:33:29 INFO util.GSet: VM type = 64-bit
15/11/21 03:33:29 INFO util.GSet: 0.25% max memory 966.7 MB = 2.4 MB
15/11/21 03:33:29 INFO util.GSet: capacity = 2^18 = 262144 entries
15/11/21 03:33:29 INFO namenode.FSNamesystem: dfs.namenode.safemode.threshold-pct = 0.9990000128746033
15/11/21 03:33:29 INFO namenode.FSNamesystem: dfs.namenode.safemode.min.datanodes = 0
15/11/21 03:33:29 INFO namenode.FSNamesystem: dfs.namenode.safemode.extension = 30000
15/11/21 03:33:29 INFO namenode.FSNamesystem: Retry cache on namenode is enabled
15/11/21 03:33:29 INFO namenode.FSNamesystem: Retry cache will use 0.03 of total heap and retry cache entry expiry time is 600000 millis
15/11/21 03:33:29 INFO util.GSet: Computing capacity for map NameNodeRetryCache
15/11/21 03:33:29 INFO util.GSet: VM type = 64-bit
15/11/21 03:33:29 INFO util.GSet: 0.029999999329447746% max memory 966.7 MB = 297.0 KB
15/11/21 03:33:29 INFO util.GSet: capacity = 2^15 = 32768 entries
15/11/21 03:33:29 INFO namenode.NNConf: ACLs enabled? false
15/11/21 03:33:29 INFO namenode.NNConf: XAttrs enabled? true
15/11/21 03:33:29 INFO namenode.NNConf: Maximum size of an xattr: 16384
15/11/21 03:33:29 INFO namenode.FSImage: Allocated new BlockPoolId: BP-631693077-10.171.19.68-1448048009309
15/11/21 03:33:29 WARN namenode.NameNode: Encountered exception during format:
java.io.IOException: Cannot create directory /mnt/tmp/dfs/name/current
at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.clearDirectory(Storage.java:337)
at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:548)
at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:569)
at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:148)
at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:941)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1379)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1504)
15/11/21 03:33:29 FATAL namenode.NameNode: Failed to start namenode.
java.io.IOException: Cannot create directory /mnt/tmp/dfs/name/current
at org.apache.hadoop.hdfs.server.common.Storage$StorageDirectory.clearDirectory(Storage.java:337)
at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:548)
at org.apache.hadoop.hdfs.server.namenode.NNStorage.format(NNStorage.java:569)
at org.apache.hadoop.hdfs.server.namenode.FSImage.format(FSImage.java:148)
at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:941)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1379)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1504)
15/11/21 03:33:29 INFO util.ExitUtil: Exiting with status 1
15/11/21 03:33:29 INFO namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at Master.Hadoop/10.171.19.68
************************************************************/
...全文
441 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

932

社区成员

发帖
与我相关
我的任务
社区描述
云计算 云存储相关讨论
社区管理员
  • 云存储
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧