hadoop 2.4.1 集群安装二
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
watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvd2luZDUyMA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="">
hadoop 2.4.1 集群安装二的更多相关文章
- hadoop 2.2.0集群安装详细步骤(简单配置,无HA)
安装环境操作系统:CentOS 6.5 i586(32位)java环境:JDK 1.7.0.51hadoop版本:社区版本2.2.0,hadoop-2.2.0.tar.gz 安装准备设置集群的host ...
- hadoop 2.2.0集群安装
相关阅读: hbase 0.98.1集群安装 本文将基于hadoop 2.2.0解说其在linux集群上的安装方法,并对一些重要的设置项进行解释,本文原文链接:http://blog.csdn.net ...
- Hadoop 2.6.1 集群安装配置教程
集群环境: 192.168.56.10 master 192.168.56.11 slave1 192.168.56.12 slave2 下载安装包/拷贝安装包 # 存放路径: cd /usr/loc ...
- CentOS系统下Hadoop 2.4.1集群安装配置(简易版)
安装配置 1.软件下载 JDK下载:jdk-7u65-linux-i586.tar.gz http://www.oracle.com/technetwork/java/javase/downloads ...
- Hive之 hive-1.2.1 + hadoop 2.7.4 集群安装
一. 相关概念 Hive Metastore有三种配置方式,分别是: Embedded Metastore Database (Derby) 内嵌模式Local Metastore Server 本地 ...
- Hadoop完全高可用集群安装
架构图(HA模型没有SNN节点) 用vm规划了8台机器,用到了7台,SNN节点没用 NN DN SN ZKFC ZK JNN RM NM node1 * * node2 * ...
- Hadoop 2.4.x集群安装配置问题总结
配置文件:/etc/profile export JAVA_HOME=/usr/java/latest export HADOOP_PREFIX=/opt/hadoop-2.4.1 export HA ...
- Hadoop 2.5.1集群安装配置
本文的安装只涉及了hadoop-common.hadoop-hdfs.hadoop-mapreduce和hadoop-yarn,并不包含HBase.Hive和Pig等. http://blog.csd ...
- hadoop 2.7.3 集群安装
三台虚拟机,centos6.5 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 :: loca ...
随机推荐
- [Python] for.. not in.. Remove Deduplication
Write a function, remove_duplicates that takes a list as its argument and returns a new list contain ...
- Image与byte[]数组的相互转换
近期项目有个需求是关于图片操作的,须要将图片保存到数据库中.经过尝试才知道Image类型文件是不能直接存储到数据库中的.保存之前须要我们做一步转换:将Image转换成字节数组类型Byte ...
- DistBelief 框架下的并行随机梯度下降法 - Downpour SGD
本文是读完 Jeffrey Dean, Greg S. Corrado 等人的文章 Large Scale Distributed Deep Networks (2012) 后的一则读书笔记,重点 ...
- iOS8 对开发人员来说意味着什么?
今天凌晨.Apple WWDC2014 iOS8 正式推出. 或许,对于广大iOS用户来说,iOS8的创新并非特别多. 但对于开发人员来说,影响却将会是无比巨大的! 正如Apple官网上的广告:Hug ...
- js---10作用域链
<html> <head> <title>scope basic</title> </head> <body> <scri ...
- js --- return返回值 闭包
什么是闭包?这就是闭包! 有权访问另一个函数作用域内变量的函数都是闭包.这里 inc 函数访问了构造函数 a 里面的变量 n,所以形成了一个闭包. function a(){ var n = 0; f ...
- Sql Server 基础语法
来自:http://www.cnblogs.com/AaronYang/archive/2012/04/24/2468093.html Sql Server 基础语法 -- 查看数据表 select ...
- 【DRF分页】
目录 第一种 PageNumberPagination 查第n页,每页显示n条数据 第二种 LimitOffsetPagination 在第n个位置,向后查n条数据 第三种 CursorPaginat ...
- Java中Thread源码剖析
本文来自http://blog.csdn.net/liuxian13183/ ,引用必须注明出处! 关于线程,用很长时间了,主线程下的子线程去做一些事情,就是一个代理模式,主线程分代理权给子线程,子线 ...
- error c2572重定义默认參数
因为想省事.在声明过函数之后直接复制粘贴去实现,结果出现error c2572重定义默认參数 顾名思义.该默认參数被定义多次.在一个文件(或一个作用域)中,仅仅能为形參指定默认 实參一次.在编译的时候 ...