hadoop:数据节点未启动

e3bfsja2  于 2021-06-03  发布在  Hadoop
关注(0)|答案(5)|浏览(503)

我已经在centos 6.5系统上安装了hadoop版本2.2,但是当我使用start-dfs.sh命令时。我的datanode没有在主pc和从pc中启动。我正在附加datanode的日志。

<i>
2014-07-14 17:22:07,797 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: STARTUP_MSG: 
/************************************************************
STARTUP_MSG: Starting DataNode
STARTUP_MSG:   host = ollh/127.0.0.1
STARTUP_MSG:   args = []
STARTUP_MSG:   version = 2.2.0
STARTUP_MSG:   classpath = /usr/local/hadoop/etc/hadoop:/usr/local/hadoop/share/hadoop/common/lib/commons-collections-3.2.1.jar:/usr/local/hadoop/share/hadoop/common/lib/guava-11.0.2.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-lang-2.5.jar:/usr/local/hadoop/share/hadoop/common/lib/xz-1.0.jar:/usr/local/hadoop/share/hadoop/common/lib/jackson-xc-1.8.8.jar:/usr/local/hadoop/share/hadoop/common/lib/zookeeper-3.4.5.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-codec-1.4.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-beanutils-1.7.0.jar:/usr/local/hadoop/share/hadoop/common/lib/jetty-util-6.1.26.jar:/usr/local/hadoop/share/hadoop/common/lib/jackson-mapper-asl-1.8.8.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-cli-1.2.jar:/usr/local/hadoop/share/hadoop/common/lib/hadoop-annotations-2.2.0.jar:/usr/local/hadoop/share/hadoop/common/lib/stax-api-1.0.1.jar:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar:/usr/local/hadoop/share/hadoop/common/lib/activation-1.1.jar:/usr/local/hadoop/share/hadoop/common/lib/jsr305-1.3.9.jar:/usr/local/hadoop/share/hadoop/common/lib/jsp-api-2.1.jar:/usr/local/hadoop/share/hadoop/common/lib/paranamer-2.3.jar:/usr/local/hadoop/share/hadoop/common/lib/servlet-api-2.5.jar:/usr/local/hadoop/share/hadoop/common/lib/jets3t-0.6.1.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-math-2.1.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-compress-1.4.1.jar:/usr/local/hadoop/share/hadoop/common/lib/jersey-server-1.9.jar:/usr/local/hadoop/share/hadoop/common/lib/jersey-core-1.9.jar:/usr/local/hadoop/share/hadoop/common/lib/junit-4.8.2.jar:/usr/local/hadoop/share/hadoop/common/lib/jettison-1.1.jar:/usr/local/hadoop/share/hadoop/common/lib/asm-3.2.jar:/usr/local/hadoop/share/hadoop/common/lib/jaxb-impl-2.2.3-1.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-beanutils-core-1.8.0.jar:/usr/local/hadoop/share/hadoop/common/lib/hadoop-auth-2.2.0.jar:/usr/local/hadoop/share/hadoop/common/lib/protobuf-java-2.5.0.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-digester-1.8.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-net-3.1.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-logging-1.1.1.jar:/usr/local/hadoop/share/hadoop/common/lib/jasper-compiler-5.5.23.jar:/usr/local/hadoop/share/hadoop/common/lib/jersey-json-1.9.jar:/usr/local/hadoop/share/hadoop/common/lib/avro-1.7.4.jar:/usr/local/hadoop/share/hadoop/common/lib/netty-3.6.2.Final.jar:/usr/local/hadoop/share/hadoop/common/lib/jsch-0.1.42.jar:/usr/local/hadoop/share/hadoop/common/lib/jackson-core-asl-1.8.8.jar:/usr/local/hadoop/share/hadoop/common/lib/xmlenc-0.52.jar:/usr/local/hadoop/share/hadoop/common/lib/jaxb-api-2.2.2.jar:/usr/local/hadoop/share/hadoop/common/lib/snappy-java-1.0.4.1.jar:/usr/local/hadoop/share/hadoop/common/lib/jackson-jaxrs-1.8.8.jar:/usr/local/hadoop/share/hadoop/common/lib/log4j-1.2.17.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-configuration-1.6.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-io-2.1.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-httpclient-3.1.jar:/usr/local/hadoop/share/hadoop/common/lib/commons-el-1.0.jar:/usr/local/hadoop/share/hadoop/common/lib/mockito-all-1.8.5.jar:/usr/local/hadoop/share/hadoop/common/lib/slf4j-api-1.7.5.jar:/usr/local/hadoop/share/hadoop/common/lib/jasper-runtime-5.5.23.jar:/usr/local/hadoop/share/hadoop/common/lib/jetty-6.1.26.jar:/usr/local/hadoop/share/hadoop/common/hadoop-common-2.2.0.jar:/usr/local/hadoop/share/hadoop/common/hadoop-common-2.2.0-tests.jar:/usr/local/hadoop/share/hadoop/common/hadoop-nfs-2.2.0.jar:/usr/local/hadoop/share/hadoop/hdfs:/usr/local/hadoop/share/hadoop/hdfs/lib/guava-11.0.2.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/commons-lang-2.5.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/commons-codec-1.4.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jetty-util-6.1.26.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jackson-mapper-asl-1.8.8.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/commons-cli-1.2.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jsr305-1.3.9.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jsp-api-2.1.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/servlet-api-2.5.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jersey-server-1.9.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jersey-core-1.9.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/asm-3.2.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/protobuf-java-2.5.0.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/commons-logging-1.1.1.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/netty-3.6.2.Final.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jackson-core-asl-1.8.8.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/xmlenc-0.52.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/log4j-1.2.17.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/commons-daemon-1.0.13.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/commons-io-2.1.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/commons-el-1.0.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jasper-runtime-5.5.23.jar:/usr/local/hadoop/share/hadoop/hdfs/lib/jetty-6.1.26.jar:/usr/local/hadoop/share/hadoop/hdfs/hadoop-hdfs-nfs-2.2.0.jar:/usr/local/hadoop/share/hadoop/hdfs/hadoop-hdfs-2.2.0-tests.jar:/usr/local/hadoop/share/hadoop/hdfs/hadoop-hdfs-2.2.0.jar:/usr/local/hadoop/share/hadoop/yarn/lib/guice-3.0.jar:/usr/local/hadoop/share/hadoop/yarn/lib/xz-1.0.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jersey-guice-1.9.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jackson-mapper-asl-1.8.8.jar:/usr/local/hadoop/share/hadoop/yarn/lib/hadoop-annotations-2.2.0.jar:/usr/local/hadoop/share/hadoop/yarn/lib/junit-4.10.jar:/usr/local/hadoop/share/hadoop/yarn/lib/paranamer-2.3.jar:/usr/local/hadoop/share/hadoop/yarn/lib/hamcrest-core-1.1.jar:/usr/local/hadoop/share/hadoop/yarn/lib/commons-compress-1.4.1.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jersey-server-1.9.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jersey-core-1.9.jar:/usr/local/hadoop/share/hadoop/yarn/lib/javax.inject-1.jar:/usr/local/hadoop/share/hadoop/yarn/lib/asm-3.2.jar:/usr/local/hadoop/share/hadoop/yarn/lib/protobuf-java-2.5.0.jar:/usr/local/hadoop/share/hadoop/yarn/lib/avro-1.7.4.jar:/usr/local/hadoop/share/hadoop/yarn/lib/netty-3.6.2.Final.jar:/usr/local/hadoop/share/hadoop/yarn/lib/jackson-core-asl-1.8.8.jar:/usr/local/hadoop/share/hadoop/yarn/lib/guice-servlet-3.0.jar:/usr/local/hadoop/share/hadoop/yarn/lib/snappy-java-1.0.4.1.jar:/usr/local/hadoop/share/hadoop/yarn/lib/log4j-1.2.17.jar:/usr/local/hadoop/share/hadoop/yarn/lib/commons-io-2.1.jar:/usr/local/hadoop/share/hadoop/yarn/lib/aopalliance-1.0.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-site-2.2.0.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-common-2.2.0.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-common-2.2.0.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-nodemanager-2.2.0.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-client-2.2.0.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.2.0.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-resourcemanager-2.2.0.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-2.2.0.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-tests-2.2.0.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-server-web-proxy-2.2.0.jar:/usr/local/hadoop/share/hadoop/yarn/hadoop-yarn-api-2.2.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/guice-3.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/xz-1.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/jersey-guice-1.9.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/jackson-mapper-asl-1.8.8.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/hadoop-annotations-2.2.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/junit-4.10.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/paranamer-2.3.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/hamcrest-core-1.1.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/commons-compress-1.4.1.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/jersey-server-1.9.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/jersey-core-1.9.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/javax.inject-1.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/asm-3.2.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/protobuf-java-2.5.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/avro-1.7.4.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/netty-3.6.2.Final.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/jackson-core-asl-1.8.8.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/guice-servlet-3.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/snappy-java-1.0.4.1.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/log4j-1.2.17.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/commons-io-2.1.jar:/usr/local/hadoop/share/hadoop/mapreduce/lib/aopalliance-1.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-app-2.2.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.2.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.2.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.2.0-tests.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.2.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-plugins-2.2.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-2.2.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-common-2.2.0.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-2.2.0.jar:/usr/local/hadoop/contrib/capacity-scheduler/*.jar:/usr/local/hadoop/contrib/capacity-scheduler/*.jar:/usr/local/hadoop/contrib/capacity-scheduler/*.jar
STARTUP_MSG:   build = https://svn.apache.org/repos/asf/hadoop/common -r 1529768; compiled by 'hortonmu' on 2013-10-07T06:28Z
STARTUP_MSG:   java = 1.7.0_60

************************************************************/

2014-07-14 17:22:07,806 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: registered UNIX signal handlers for [TERM, HUP, INT]
2014-07-14 17:22:08,617 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2014-07-14 17:22:09,260 INFO org.apache.hadoop.metrics2.impl.MetricsConfig: loaded properties from hadoop-metrics2.properties
2014-07-14 17:22:09,368 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Scheduled snapshot period at 10 second(s).
2014-07-14 17:22:09,368 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: DataNode metrics system started
2014-07-14 17:22:09,373 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Configured hostname is localhost
2014-07-14 17:22:09,416 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Opened streaming server at /0.0.0.0:50010
2014-07-14 17:22:09,444 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Balancing bandwith is 1048576 bytes/s
2014-07-14 17:22:09,615 INFO org.mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
2014-07-14 17:22:09,705 INFO org.apache.hadoop.http.HttpServer: Added global filter 'safety' (class=org.apache.hadoop.http.HttpServer$QuotingInputFilter)
2014-07-14 17:22:09,709 INFO org.apache.hadoop.http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context datanode
2014-07-14 17:22:09,709 INFO org.apache.hadoop.http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context static
2014-07-14 17:22:09,710 INFO org.apache.hadoop.http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context logs
2014-07-14 17:22:09,716 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Opened info server at 0.0.0.0:50075
2014-07-14 17:22:09,721 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: dfs.webhdfs.enabled = false
2014-07-14 17:22:09,721 INFO org.apache.hadoop.http.HttpServer: Jetty bound to port 50075
2014-07-14 17:22:09,722 INFO org.mortbay.log: jetty-6.1.26
2014-07-14 17:22:10,241 INFO org.mortbay.log: Started SelectChannelConnector@0.0.0.0:50075
2014-07-14 17:22:10,690 INFO org.apache.hadoop.ipc.Server: Starting Socket Reader #1 for port 50020
2014-07-14 17:22:10,726 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Opened IPC server at /0.0.0.0:50020
2014-07-14 17:22:10,747 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Refresh request received for nameservices: null
2014-07-14 17:22:10,780 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Starting BPOfferServices for nameservices: <default>
2014-07-14 17:22:10,796 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Block pool <registering> (storage id unknown) service to master/192.168.1.122:9000 starting to offer service
2014-07-14 17:22:10,804 INFO org.apache.hadoop.ipc.Server: IPC Server Responder: starting
2014-07-14 17:22:10,807 INFO org.apache.hadoop.ipc.Server: IPC Server listener on 50020: starting
2014-07-14 17:22:11,658 INFO org.apache.hadoop.hdfs.server.common.Storage: Lock on /home/hduser/mydata/hdfs/dfs/data/in_use.lock acquired by nodename 20870@ollh
2014-07-14 17:22:11,674 FATAL org.apache.hadoop.hdfs.server.datanode.DataNode: Initialization failed for block pool Block pool BP-273134468-127.0.0.1-1405329708027 (storage id DS-803443442-127.0.0.1-50010-1405328424841) service to master/192.168.1.122:9000
java.io.IOException: Incompatible clusterIDs in /home/hduser/mydata/hdfs/dfs/data: namenode clusterID = CID-fbd216d7-06f4-44b5-a6b6-ff2f4d5e677f; datanode clusterID = CID-c5ce9a14-d391-48fe-9c7f-bd9af5b9cd5e
    at org.apache.hadoop.hdfs.server.datanode.DataStorage.doTransition(DataStorage.java:391)
    at org.apache.hadoop.hdfs.server.datanode.DataStorage.recoverTransitionRead(DataStorage.java:191)
    at org.apache.hadoop.hdfs.server.datanode.DataStorage.recoverTransitionRead(DataStorage.java:219)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.initStorage(DataNode.java:837)
    at org.apache.hadoop.hdfs.server.datanode.DataNode.initBlockPool(DataNode.java:808)
    at org.apache.hadoop.hdfs.server.datanode.BPOfferService.verifyAndSetNamespaceInfo(BPOfferService.java:280)
    at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.connectToNNAndHandshake(BPServiceActor.java:222)
    at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.run(BPServiceActor.java:664)
    at java.lang.Thread.run(Thread.java:745)
2014-07-14 17:22:11,677 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Ending block pool service for: Block pool BP-273134468-127.0.0.1-1405329708027 (storage id DS-803443442-127.0.0.1-50010-1405328424841) service to master/192.168.1.122:9000
2014-07-14 17:22:11,798 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Removed Block pool BP-273134468-127.0.0.1-1405329708027 (storage id DS-803443442-127.0.0.1-50010-1405328424841)
2014-07-14 17:22:13,798 WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Exiting Datanode
2014-07-14 17:22:13,800 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 0
2014-07-14 17:22:13,802 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down DataNode at ollh/127.0.0.1

************************************************************/

  </i>

strong TEXT我就是这样实现start-dfs.sh和start-yarn.sh的

[hduser@ollh hadoop]$ start-dfs.sh
14/07/14 17:22:01 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [master]
master: starting namenode, logging to /usr/local/hadoop/logs/hadoop-hduser-namenode-ollh.out
slave1: starting datanode, logging to /usr/local/hadoop/logs/hadoop-hduser-datanode-ollcf.out
master: starting datanode, logging to /usr/local/hadoop/logs/hadoop-hduser-datanode-ollh.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/logs/hadoop-hduser-secondarynamenode-ollh.out
14/07/14 17:22:40 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
[hduser@ollh hadoop]$ jps
11509 JobHistoryServer
21228 Jps
20768 NameNode
21059 SecondaryNameNode
[hduser@ollh hadoop]$ start-yarn.sh 
starting yarn daemons
starting resourcemanager, logging to /usr/local/hadoop/logs/yarn-hduser-resourcemanager-ollh.out
slave1: starting nodemanager, logging to /usr/local/hadoop/logs/yarn-hduser-nodemanager-ollcf.out
master: starting nodemanager, logging to /usr/local/hadoop/logs/yarn-hduser-nodemanager-ollh.out
[hduser@ollh hadoop]$ jps
11509 JobHistoryServer
20768 NameNode
21059 SecondaryNameNode
21395 NodeManager
21290 ResourceManager
21431 Jps

有关主ip地址和从ip地址的当前信息

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1      localhost localhost.localdomain localhost6 localhost6.localdomain6 ollh
192.168.1.109   slave1
192.168.1.122   master

hadoop namenode-format给了我这个

STARTUP_MSG:   build = https://svn.apache.org/repos/asf/hadoop/common -r 1529768; compiled by 'hortonmu' on 2013-10-07T06:28Z
STARTUP_MSG:   java = 1.7.0_60

************************************************************/

14/07/14 17:39:27 INFO namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]
14/07/14 17:39:28 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Formatting using clusterid: CID-1879875b-52b4-4c34-87c0-709c45b37a63
14/07/14 17:39:28 INFO namenode.HostFileManager: read includes:
HostSet(
)
14/07/14 17:39:28 INFO namenode.HostFileManager: read excludes:
HostSet(
)
14/07/14 17:39:28 INFO blockmanagement.DatanodeManager: dfs.block.invalidate.limit=1000
14/07/14 17:39:28 INFO util.GSet: Computing capacity for map BlocksMap
14/07/14 17:39:28 INFO util.GSet: VM type       = 64-bit
14/07/14 17:39:28 INFO util.GSet: 2.0% max memory = 889 MB
14/07/14 17:39:28 INFO util.GSet: capacity      = 2^21 = 2097152 entries
14/07/14 17:39:28 INFO blockmanagement.BlockManager: dfs.block.access.token.enable=false
14/07/14 17:39:28 INFO blockmanagement.BlockManager: defaultReplication         = 2
14/07/14 17:39:28 INFO blockmanagement.BlockManager: maxReplication             = 512
14/07/14 17:39:28 INFO blockmanagement.BlockManager: minReplication             = 1
14/07/14 17:39:28 INFO blockmanagement.BlockManager: maxReplicationStreams      = 2
14/07/14 17:39:28 INFO blockmanagement.BlockManager: shouldCheckForEnoughRacks  = false
14/07/14 17:39:28 INFO blockmanagement.BlockManager: replicationRecheckInterval = 3000
14/07/14 17:39:28 INFO blockmanagement.BlockManager: encryptDataTransfer        = false
14/07/14 17:39:28 INFO namenode.FSNamesystem: fsOwner             = hduser (auth:SIMPLE)
14/07/14 17:39:28 INFO namenode.FSNamesystem: supergroup          = supergroup
14/07/14 17:39:28 INFO namenode.FSNamesystem: isPermissionEnabled = false
14/07/14 17:39:28 INFO namenode.FSNamesystem: HA Enabled: false
14/07/14 17:39:28 INFO namenode.FSNamesystem: Append Enabled: true
14/07/14 17:39:29 INFO util.GSet: Computing capacity for map INodeMap
14/07/14 17:39:29 INFO util.GSet: VM type       = 64-bit
14/07/14 17:39:29 INFO util.GSet: 1.0% max memory = 889 MB
14/07/14 17:39:29 INFO util.GSet: capacity      = 2^20 = 1048576 entries
14/07/14 17:39:29 INFO namenode.NameNode: Caching file names occuring more than 10 times
14/07/14 17:39:29 INFO namenode.FSNamesystem: dfs.namenode.safemode.threshold-pct = 0.9990000128746033
14/07/14 17:39:29 INFO namenode.FSNamesystem: dfs.namenode.safemode.min.datanodes = 0
14/07/14 17:39:29 INFO namenode.FSNamesystem: dfs.namenode.safemode.extension     = 30000
14/07/14 17:39:29 INFO namenode.FSNamesystem: Retry cache on namenode is enabled
14/07/14 17:39:29 INFO namenode.FSNamesystem: Retry cache will use 0.03 of total heap and retry cache entry expiry time is 600000 millis
14/07/14 17:39:29 INFO util.GSet: Computing capacity for map Namenode Retry Cache
14/07/14 17:39:29 INFO util.GSet: VM type       = 64-bit
14/07/14 17:39:29 INFO util.GSet: 0.029999999329447746% max memory = 889 MB
14/07/14 17:39:29 INFO util.GSet: capacity      = 2^15 = 32768 entries
Re-format filesystem in Storage Directory /home/hduser/mydata/hdfs/dfs/name ? (Y or N) Y
14/07/14 17:39:31 INFO common.Storage: Storage directory /home/hduser/mydata/hdfs/dfs/name has been successfully formatted.
14/07/14 17:39:31 INFO namenode.FSImage: Saving image file /home/hduser/mydata/hdfs/dfs/name/current/fsimage.ckpt_0000000000000000000 using no compression
14/07/14 17:39:31 INFO namenode.FSImage: Image file /home/hduser/mydata/hdfs/dfs/name/current/fsimage.ckpt_0000000000000000000 of size 198 bytes saved in 0 seconds.
14/07/14 17:39:32 INFO namenode.NNStorageRetentionManager: Going to retain 1 images with txid >= 0
14/07/14 17:39:32 INFO util.ExitUtil: Exiting with status 0
14/07/14 17:39:32 INFO namenode.NameNode: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at ollh/127.0.0.1

************************************************************/
4uqofj5v

4uqofj5v1#

我在本地vm中遇到了类似的问题,其中name节点没有启动。中有一个有效条目 core-site.xml 但还是什么时候 ./start-all.sh 已运行除namenode之外的所有其他守护进程将不会启动。为了解决这个问题,我再次格式化了名称节点。
命令: hadoop namenode -format 然后运行 ./start-all.sh 文件位于bin文件夹下。输入 jps 命令查看namenode是否与datanode、tasktracker、jobtracker、secondarynamenode等其他守护进程一起启动
如果datanode没有启动,我会检查名为'slaves'的conf文件,看看条目是否正确。
注意:这是一个初始设置阶段,因此hdfs中没有数据。

6bc51xsx

6bc51xsx2#

检查版本中namenode和datanode的名称空间id。这些应该是一样的。如果没有,请复制namenode namespaceid并替换datanode的namespaceid。然后开始。它会解决你的问题。

zlhcx6iw

zlhcx6iw3#

您可以尝试:

hadoop datanode -rollback
de90aj5v

de90aj5v4#

遵循以下步骤:
关闭群集
从hadoop.tmp.dir位置手动删除目录。
格式化群集。
重新启动。
如果问题仍然存在,请告诉我。
致以最诚挚的问候。

bzzcjhmw

bzzcjhmw5#

删除tmp文件夹(包含datanode和namenode),然后格式化namenode。

hadoop namenode - format

你的问题会解决的。

相关问题