当前位置: > Linux集群 > Hadoop >

hadoop 2.4.1 集群安装二

时间:2016-12-24 17:31来源:linux.it.net.cn 作者:IT

 

1:创建目录


[jifeng@feng01 hadoop]$ mkdir tmp 
[jifeng@feng01 hadoop]$ mkdir name 
[jifeng@feng01 hadoop]$ mkdir data 
[jifeng@feng01 hadoop]$ ls 
data                     hadoop-1.2.1.tar.gz      hadoop-2.4.1.tar.gz 
hadoop-1.2.1             hadoop-2.4.1             name 
hadoop-1.2.1-bin.tar.gz  hadoop-2.4.1-src.tar.gz  tmp 
[jifeng@feng01 hadoop]$  

2:先其它2个节点复制hadoop-2.4.1


[jifeng@feng01 hadoop]$ scp -r ./hadoop-2.4.1 feng03:/home/jifeng/hadoop 
[jifeng@feng01 hadoop]$ scp -r ./hadoop-2.4.1 feng02:/home/jifeng/hadoop 
3:格式化分布式文件系统

[jifeng@feng01 hadoop-2.4.1]$ ./bin/hdfs namenode -format 
14/07/31 15:40:14 INFO namenode.NameNode: STARTUP_MSG:  
/************************************************************ 
STARTUP_MSG: Starting NameNode 
STARTUP_MSG:   host = feng01/10.6.3.84 
STARTUP_MSG:   args = [-format] 
STARTUP_MSG:   version = 2.4.1 
STARTUP_MSG:   classpath = /home/jifeng/hadoop/hadoop-2.4.1/etc/hadoop:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jetty-util-6.1.26.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/commons-beanutils-core-1.8.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/commons-cli-1.2.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jasper-runtime-5.5.23.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jsp-api-2.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/log4j-1.2.17.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/hadoop-annotations-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/activation-1.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/mockito-all-1.8.5.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/xmlenc-0.52.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/commons-codec-1.4.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/servlet-api-2.5.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/commons-lang-2.6.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/commons-net-3.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/commons-beanutils-1.7.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/slf4j-api-1.7.5.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/commons-digester-1.8.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/netty-3.6.2.Final.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/commons-collections-3.2.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/commons-math3-3.1.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/commons-el-1.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jsch-0.1.42.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/zookeeper-3.4.5.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/java-xmlbuilder-0.4.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jaxb-api-2.2.2.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/httpcore-4.2.5.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/xz-1.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/protobuf-java-2.5.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/guava-11.0.2.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jersey-server-1.9.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/snappy-java-1.0.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jets3t-0.9.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jaxb-impl-2.2.3-1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/stax-api-1.0-2.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/commons-configuration-1.6.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jsr305-1.3.9.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jackson-xc-1.8.8.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/commons-io-2.4.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/commons-httpclient-3.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/httpclient-4.2.5.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jasper-compiler-5.5.23.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/asm-3.2.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jetty-6.1.26.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jackson-core-asl-1.8.8.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/paranamer-2.3.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/commons-compress-1.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jackson-jaxrs-1.8.8.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/avro-1.7.4.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jersey-core-1.9.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/hadoop-auth-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jettison-1.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/junit-4.8.2.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/commons-logging-1.1.3.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jackson-mapper-asl-1.8.8.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/lib/jersey-json-1.9.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/hadoop-common-2.4.1-tests.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/hadoop-common-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/common/hadoop-nfs-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/jetty-util-6.1.26.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/commons-cli-1.2.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/jasper-runtime-5.5.23.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/jsp-api-2.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/log4j-1.2.17.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/xmlenc-0.52.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/commons-codec-1.4.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/servlet-api-2.5.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/commons-lang-2.6.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/netty-3.6.2.Final.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/commons-daemon-1.0.13.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/commons-el-1.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/protobuf-java-2.5.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/guava-11.0.2.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/jersey-server-1.9.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/jsr305-1.3.9.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/commons-io-2.4.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/asm-3.2.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/jetty-6.1.26.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/jackson-core-asl-1.8.8.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/jersey-core-1.9.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/commons-logging-1.1.3.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/lib/jackson-mapper-asl-1.8.8.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/hadoop-hdfs-nfs-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/hadoop-hdfs-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/hdfs/hadoop-hdfs-2.4.1-tests.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/jetty-util-6.1.26.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/guice-3.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/commons-cli-1.2.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/jline-0.9.94.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/log4j-1.2.17.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/activation-1.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/commons-codec-1.4.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/jersey-guice-1.9.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/servlet-api-2.5.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/commons-lang-2.6.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/aopalliance-1.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/guice-servlet-3.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/commons-collections-3.2.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/zookeeper-3.4.5.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/jaxb-api-2.2.2.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/xz-1.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/jersey-client-1.9.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/protobuf-java-2.5.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/guava-11.0.2.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/jersey-server-1.9.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/jaxb-impl-2.2.3-1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/stax-api-1.0-2.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/jsr305-1.3.9.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/jackson-xc-1.8.8.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/commons-io-2.4.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/commons-httpclient-3.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/asm-3.2.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/jetty-6.1.26.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/jackson-core-asl-1.8.8.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/leveldbjni-all-1.8.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/javax.inject-1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/commons-compress-1.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/jackson-jaxrs-1.8.8.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/jersey-core-1.9.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/jettison-1.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/commons-logging-1.1.3.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/jackson-mapper-asl-1.8.8.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/lib/jersey-json-1.9.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/hadoop-yarn-api-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/hadoop-yarn-server-common-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/hadoop-yarn-server-resourcemanager-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/hadoop-yarn-client-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/hadoop-yarn-server-applicationhistoryservice-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/hadoop-yarn-server-web-proxy-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/hadoop-yarn-server-tests-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/hadoop-yarn-server-nodemanager-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/yarn/hadoop-yarn-common-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/guice-3.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/log4j-1.2.17.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/hadoop-annotations-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/hamcrest-core-1.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/jersey-guice-1.9.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/netty-3.6.2.Final.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/aopalliance-1.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/guice-servlet-3.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/xz-1.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/protobuf-java-2.5.0.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/jersey-server-1.9.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/snappy-java-1.0.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/commons-io-2.4.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/asm-3.2.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/jackson-core-asl-1.8.8.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/junit-4.10.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/paranamer-2.3.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/javax.inject-1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/commons-compress-1.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/avro-1.7.4.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/jersey-core-1.9.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/lib/jackson-mapper-asl-1.8.8.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-plugins-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/hadoop-mapreduce-client-app-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.4.1.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.4.1-tests.jar:/home/jifeng/hadoop/hadoop-2.4.1/share/hadoop/mapreduce/hadoop-mapreduce-client-common-2.4.1.jar:/contrib/capacity-scheduler/*.jar 
STARTUP_MSG:   build = http://svn.apache.org/repos/asf/hadoop/common -r 1604318; compiled by 'jenkins' on 2014-06-21T05:43Z 
STARTUP_MSG:   java = 1.7.0_45 
************************************************************/ 
14/07/31 15:40:14 INFO namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT] 
14/07/31 15:40:14 INFO namenode.NameNode: createNameNode [-format] 
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/jifeng/hadoop/hadoop-2.4.1/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now. 
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. 
14/07/31 15:40:15 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 
Formatting using clusterid: CID-6ba2b639-29ef-437b-ae4e-619cf6390c7d 
14/07/31 15:40:15 INFO namenode.FSNamesystem: fsLock is fair:true 
14/07/31 15:40:15 INFO namenode.HostFileManager: read includes: 
HostSet( 

14/07/31 15:40:15 INFO namenode.HostFileManager: read excludes: 
HostSet( 

14/07/31 15:40:15 INFO blockmanagement.DatanodeManager: dfs.block.invalidate.limit=1000 
14/07/31 15:40:15 INFO blockmanagement.DatanodeManager: dfs.namenode.datanode.registration.ip-hostname-check=true 
14/07/31 15:40:15 INFO util.GSet: Computing capacity for map BlocksMap 
14/07/31 15:40:15 INFO util.GSet: VM type       = 64-bit 
14/07/31 15:40:15 INFO util.GSet: 2.0% max memory 889 MB = 17.8 MB 
14/07/31 15:40:15 INFO util.GSet: capacity      = 2^21 = 2097152 entries 
14/07/31 15:40:15 INFO blockmanagement.BlockManager: dfs.block.access.token.enable=false 
14/07/31 15:40:15 INFO blockmanagement.BlockManager: defaultReplication         = 1 
14/07/31 15:40:15 INFO blockmanagement.BlockManager: maxReplication             = 512 
14/07/31 15:40:15 INFO blockmanagement.BlockManager: minReplication             = 1 
14/07/31 15:40:15 INFO blockmanagement.BlockManager: maxReplicationStreams      = 2 
14/07/31 15:40:15 INFO blockmanagement.BlockManager: shouldCheckForEnoughRacks  = false 
14/07/31 15:40:15 INFO blockmanagement.BlockManager: replicationRecheckInterval = 3000 
14/07/31 15:40:15 INFO blockmanagement.BlockManager: encryptDataTransfer        = false 
14/07/31 15:40:15 INFO blockmanagement.BlockManager: maxNumBlocksToLog          = 1000 
14/07/31 15:40:15 INFO namenode.FSNamesystem: fsOwner             = jifeng (auth:SIMPLE) 
14/07/31 15:40:15 INFO namenode.FSNamesystem: supergroup          = supergroup 
14/07/31 15:40:15 INFO namenode.FSNamesystem: isPermissionEnabled = true 
14/07/31 15:40:15 INFO namenode.FSNamesystem: HA Enabled: false 
14/07/31 15:40:15 INFO namenode.FSNamesystem: Append Enabled: true 
14/07/31 15:40:15 INFO util.GSet: Computing capacity for map INodeMap 
14/07/31 15:40:15 INFO util.GSet: VM type       = 64-bit 
14/07/31 15:40:15 INFO util.GSet: 1.0% max memory 889 MB = 8.9 MB 
14/07/31 15:40:15 INFO util.GSet: capacity      = 2^20 = 1048576 entries 
14/07/31 15:40:15 INFO namenode.NameNode: Caching file names occuring more than 10 times 
14/07/31 15:40:15 INFO util.GSet: Computing capacity for map cachedBlocks 
14/07/31 15:40:15 INFO util.GSet: VM type       = 64-bit 
14/07/31 15:40:15 INFO util.GSet: 0.25% max memory 889 MB = 2.2 MB 
14/07/31 15:40:15 INFO util.GSet: capacity      = 2^18 = 262144 entries 
14/07/31 15:40:15 INFO namenode.FSNamesystem: dfs.namenode.safemode.threshold-pct = 0.9990000128746033 
14/07/31 15:40:15 INFO namenode.FSNamesystem: dfs.namenode.safemode.min.datanodes = 0 
14/07/31 15:40:15 INFO namenode.FSNamesystem: dfs.namenode.safemode.extension     = 30000 
14/07/31 15:40:15 INFO namenode.FSNamesystem: Retry cache on namenode is enabled 
14/07/31 15:40:15 INFO namenode.FSNamesystem: Retry cache will use 0.03 of total heap and retry cache entry expiry time is 600000 millis 
14/07/31 15:40:15 INFO util.GSet: Computing capacity for map NameNodeRetryCache 
14/07/31 15:40:15 INFO util.GSet: VM type       = 64-bit 
14/07/31 15:40:15 INFO util.GSet: 0.029999999329447746% max memory 889 MB = 273.1 KB 
14/07/31 15:40:15 INFO util.GSet: capacity      = 2^15 = 32768 entries 
14/07/31 15:40:15 INFO namenode.AclConfigFlag: ACLs enabled? false 
14/07/31 15:40:15 INFO namenode.FSImage: Allocated new BlockPoolId: BP-1910920788-10.6.3.84-1406792415745 
14/07/31 15:40:15 INFO common.Storage: Storage directory /home/jifeng/hadoop/name has been successfully formatted. 
14/07/31 15:40:16 INFO namenode.NNStorageRetentionManager: Going to retain 1 images with txid >= 0 
14/07/31 15:40:16 INFO util.ExitUtil: Exiting with status 0 
14/07/31 15:40:16 INFO namenode.NameNode: SHUTDOWN_MSG:  
/************************************************************ 
SHUTDOWN_MSG: Shutting down NameNode at feng01/10.6.3.84 
************************************************************/ 
[jifeng@feng01 hadoop-2.4.1]$  
4:启动hadoop
启动dfs

./sbin/start-dfs.sh



[jifeng@feng01 hadoop-2.4.1]$ ./sbin/start-dfs.sh 
14/07/31 16:20:29 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 
Starting namenodes on [Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/jifeng/hadoop/hadoop-2.4.1/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now. 
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. 
feng01] 
sed:-e 表达式 #1,字符 6:unknown option to `s' 
HotSpot(TM): ssh: HotSpot(TM): Temporary failure in name resolution 
64-Bit: ssh: 64-Bit: Temporary failure in name resolution 
Server: ssh: Server: Temporary failure in name resolution 
Java: ssh: Java: Temporary failure in name resolution 
VM: ssh: VM: Temporary failure in name resolution 
-c: Unknown cipher type 'cd' 
warning:: ssh: warning:: Temporary failure in name resolution 
have: ssh: have: Temporary failure in name resolution 
loaded: ssh: loaded: Temporary failure in name resolution 
library: ssh: library: Temporary failure in name resolution 
disabled: ssh: disabled: Temporary failure in name resolution 
have: ssh: have: Temporary failure in name resolution 
might: ssh: might: Temporary failure in name resolution 
which: ssh: which: Temporary failure in name resolution 
stack: ssh: stack: Temporary failure in name resolution 
VM: ssh: VM: Temporary failure in name resolution 
The: ssh: The: Temporary failure in name resolution 
will: ssh: will: Temporary failure in name resolution 
guard.: ssh: guard.: Temporary failure in name resolution 
fix: ssh: fix: Temporary failure in name resolution 
try: ssh: try: Temporary failure in name resolution 
guard: ssh: guard: Temporary failure in name resolution 
the: ssh: the: Temporary failure in name resolution 
stack: ssh: stack: Temporary failure in name resolution 
to: ssh: to: Temporary failure in name resolution 
now.: ssh: now.: Temporary failure in name resolution 
It's: ssh: It's: Temporary failure in name resolution 
highly: ssh: highly: Temporary failure in name resolution 
recommended: ssh: recommended: Temporary failure in name resolution 
you: ssh: you: Temporary failure in name resolution 
fix: ssh: fix: Temporary failure in name resolution 
the: ssh: the: Temporary failure in name resolution 
feng01: starting namenode, logging to /home/jifeng/hadoop/hadoop-2.4.1/logs/hadoop-jifeng-namenode-feng01.out 
library: ssh: library: Temporary failure in name resolution 
that: ssh: that: Temporary failure in name resolution 
'execstack: ssh: 'execstack: Temporary failure in name resolution 
link: ssh: link: Temporary failure in name resolution 
'-z: ssh: '-z: Temporary failure in name resolution 
with: ssh: with: Temporary failure in name resolution 
it: ssh: it: Temporary failure in name resolution 
<libfile>',: ssh: <libfile>',: Temporary failure in name resolution 
noexecstack'.: ssh: noexecstack'.: Temporary failure in name resolution 
or: ssh: or: Temporary failure in name resolution 
with: ssh: with: Temporary failure in name resolution 
You: ssh: You: Temporary failure in name resolution 
feng01: Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/jifeng/hadoop/hadoop-2.4.1/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now. 
feng01: It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. 
feng03: starting datanode, logging to /home/jifeng/hadoop/hadoop-2.4.1/logs/hadoop-jifeng-datanode-feng03.out 
feng02: starting datanode, logging to /home/jifeng/hadoop/hadoop-2.4.1/logs/hadoop-jifeng-datanode-feng02.out 
feng03: Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/jifeng/hadoop/hadoop-2.4.1/lib/native/libhadoop.so which might have disabled stack guard. The VM will try to fix the stack guard now. 
feng03: It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. 
Starting secondary namenodes [Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/jifeng/hadoop/hadoop-2.4.1/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now. 
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. 
feng01] 
sed:-e 表达式 #1,字符 6:unknown option to `s' 
-c: Unknown cipher type 'cd' 
Java: ssh: Java: Temporary failure in name resolution 
64-Bit: ssh: 64-Bit: Temporary failure in name resolution 
VM: ssh: VM: Temporary failure in name resolution 
Server: ssh: Server: Temporary failure in name resolution 
HotSpot(TM): ssh: HotSpot(TM): Temporary failure in name resolution 
warning:: ssh: warning:: Temporary failure in name resolution 
You: ssh: You: Temporary failure in name resolution 
have: ssh: have: Temporary failure in name resolution 
disabled: ssh: disabled: Temporary failure in name resolution 
have: ssh: have: Temporary failure in name resolution 
might: ssh: might: Temporary failure in name resolution 
guard.: ssh: guard.: Temporary failure in name resolution 
library: ssh: library: Temporary failure in name resolution 
loaded: ssh: loaded: Temporary failure in name resolution 
which: ssh: which: Temporary failure in name resolution 
The: ssh: The: Temporary failure in name resolution 
VM: ssh: VM: Temporary failure in name resolution 
stack: ssh: stack: Temporary failure in name resolution 
It's: ssh: It's: Temporary failure in name resolution 
stack: ssh: stack: Temporary failure in name resolution 
highly: ssh: highly: Temporary failure in name resolution 
now.: ssh: now.: Temporary failure in name resolution 
will: ssh: will: Temporary failure in name resolution 
recommended: ssh: recommended: Temporary failure in name resolution 
fix: ssh: fix: Temporary failure in name resolution 
that: ssh: that: Temporary failure in name resolution 
try: ssh: try: Temporary failure in name resolution 
the: ssh: the: Temporary failure in name resolution 
guard: ssh: guard: Temporary failure in name resolution 
fix: ssh: fix: Temporary failure in name resolution 
'execstack: ssh: 'execstack: Temporary failure in name resolution 
with: ssh: with: Temporary failure in name resolution 
library: ssh: library: Temporary failure in name resolution 
the: ssh: the: Temporary failure in name resolution 
you: ssh: you: Temporary failure in name resolution 
it: ssh: it: Temporary failure in name resolution 
or: ssh: or: Temporary failure in name resolution 
<libfile>',: ssh: <libfile>',: Temporary failure in name resolution 
link: ssh: link: Temporary failure in name resolution 
with: ssh: with: Temporary failure in name resolution 
noexecstack'.: ssh: noexecstack'.: Temporary failure in name resolution 
feng01: starting secondarynamenode, logging to /home/jifeng/hadoop/hadoop-2.4.1/logs/hadoop-jifeng-secondarynamenode-feng01.out 
'-z: ssh: '-z: Temporary failure in name resolution 
to: ssh: to: Temporary failure in name resolution 
feng01: Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/jifeng/hadoop/hadoop-2.4.1/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now. 
feng01: It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. 
14/07/31 16:20:45 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 
检测守护进程

[jifeng@feng01 hadoop-2.4.1]$ jps 
9114 SecondaryNameNode 
9232 Jps 
8832 NameNode 
启动yarn


[jifeng@feng01 hadoop-2.4.1]$ ./sbin/start-yarn.sh 
starting yarn daemons 
starting resourcemanager, logging to /home/jifeng/hadoop/hadoop-2.4.1/logs/yarn-jifeng-resourcemanager-feng01.out 
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/jifeng/hadoop/hadoop-2.4.1/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now. 
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. 
feng03: starting nodemanager, logging to /home/jifeng/hadoop/hadoop-2.4.1/logs/yarn-jifeng-nodemanager-feng03.out 
feng02: starting nodemanager, logging to /home/jifeng/hadoop/hadoop-2.4.1/logs/yarn-jifeng-nodemanager-feng02.out 
[jifeng@feng01 hadoop-2.4.1]$ jps 
9599 Jps 
9336 ResourceManager 
9114 SecondaryNameNode 
8832 NameNode 

启劢hdfs: ./sbin/start-dfs.sh
 此时在feng01上面运行的迕程有:namenode,secondarynamenode
 feng02和feng03上面运行的迕程有:datanode
 启劢yarn: ./sbin/start-yarn.sh
 此时在feng01上运行的迕程有:namenode,secondarynamenode,resourcemanager
 feng02和feng03上面运行的迕程有:datanode,nodemanager






(责任编辑:IT)
------分隔线----------------------------