bin/hdfs dfs -mkdir xmkdir

By | 2019年2月24日

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hzdxw/article/details/51699150

[root@cdh1 Desktop]# cd /home/hadoop/data/
[root@cdh1 data]# l
bash: l: command not found
[root@cdh1 data]# ll
total 0
[root@cdh1 data]# ls -l
total 0
[root@cdh1 data]# cd ../name/
[root@cdh1 name]# ll
^[[Dtotal 0
[root@cdh1 name]# ll
total 0
[root@cdh1 name]# ls -l
total 0
[root@cdh1 name]# /data/hadoop/
bash: /data/hadoop/: is a directory
[root@cdh1 name]# cd /data/hadoop/
[root@cdh1 hadoop]# ls
data  hdfs  name  tmp
[root@cdh1 hadoop]# ls -l
total 16
drwxrwxrwx 2 hadoop hadoop 4096 Jul  4  2015 data
drwxrwxrwx 2 hadoop hadoop 4096 Jul  4  2015 hdfs
drwxrwxrwx 2 hadoop hadoop 4096 Jul  4  2015 name
drwxrwxrwx 2 hadoop hadoop 4096 Jul  4  2015 tmp
[root@cdh1 hadoop]# cd data/
[root@cdh1 data]# ls
[root@cdh1 data]# cd ../name/
[root@cdh1 name]# ls
[root@cdh1 name]# cd ../tmp/
[root@cdh1 tmp]# ls
[root@cdh1 tmp]# cd ../hdfs/
[root@cdh1 hdfs]# ls
[root@cdh1 hdfs]# hadoop namenode -format
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

16/06/16 18:42:38 INFO namenode.NameNode: STARTUP_MSG: 
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG:   host = cdh1/127.0.0.1
STARTUP_MSG:   args = [-format]
STARTUP_MSG:   version = 2.6.0
STARTUP_MSG:   classpath = /user/local/hadoop-2.6.0/etc/hadoop:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jackson-mapper-asl-1.9.13.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/commons-configuration-1.6.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/api-asn1-api-1.0.0-M20.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/stax-api-1.0-2.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jersey-server-1.9.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/httpcore-4.2.5.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/servlet-api-2.5.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/httpclient-4.2.5.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jetty-util-6.1.26.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jettison-1.1.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/commons-collections-3.2.1.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/xmlenc-0.52.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jasper-runtime-5.5.23.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jsp-api-2.1.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/commons-codec-1.4.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/apacheds-i18n-2.0.0-M15.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/curator-recipes-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/gson-2.2.4.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/xz-1.0.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jetty-6.1.26.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/mockito-all-1.8.5.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jackson-core-asl-1.9.13.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jersey-core-1.9.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/apacheds-kerberos-codec-2.0.0-M15.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/avro-1.7.4.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jersey-json-1.9.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/hamcrest-core-1.3.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/commons-beanutils-1.7.0.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/htrace-core-3.0.4.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/commons-io-2.4.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/commons-logging-1.1.3.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/commons-httpclient-3.1.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jasper-compiler-5.5.23.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/protobuf-java-2.5.0.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jackson-jaxrs-1.9.13.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/commons-compress-1.4.1.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jsch-0.1.42.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/hadoop-auth-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/log4j-1.2.17.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/api-util-1.0.0-M20.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/activation-1.1.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/commons-digester-1.8.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/snappy-java-1.0.4.1.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/zookeeper-3.4.6.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/guava-11.0.2.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/commons-lang-2.6.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/commons-math3-3.1.1.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jets3t-0.9.0.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/commons-cli-1.2.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jsr305-1.3.9.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/curator-framework-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/commons-beanutils-core-1.8.0.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/slf4j-api-1.7.5.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/netty-3.6.2.Final.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jaxb-api-2.2.2.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/paranamer-2.3.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/commons-net-3.1.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/junit-4.11.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/hadoop-annotations-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/java-xmlbuilder-0.4.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jackson-xc-1.9.13.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/curator-client-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/commons-el-1.0.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/jaxb-impl-2.2.3-1.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar:/user/local/hadoop-2.6.0/share/hadoop/common/lib/asm-3.2.jar:/user/local/hadoop-2.6.0/share/hadoop/common/hadoop-common-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/common/hadoop-nfs-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/common/hadoop-common-2.6.0-tests.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/jackson-mapper-asl-1.9.13.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/jersey-server-1.9.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/servlet-api-2.5.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/jetty-util-6.1.26.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/xmlenc-0.52.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/jasper-runtime-5.5.23.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/jsp-api-2.1.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/commons-codec-1.4.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/jetty-6.1.26.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/jackson-core-asl-1.9.13.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/jersey-core-1.9.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/htrace-core-3.0.4.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/commons-io-2.4.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/commons-logging-1.1.3.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/protobuf-java-2.5.0.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/commons-daemon-1.0.13.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/log4j-1.2.17.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/guava-11.0.2.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/commons-lang-2.6.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/commons-cli-1.2.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/jsr305-1.3.9.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/netty-3.6.2.Final.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/xml-apis-1.3.04.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/xercesImpl-2.9.1.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/commons-el-1.0.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/lib/asm-3.2.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/hadoop-hdfs-2.6.0-tests.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/hadoop-hdfs-nfs-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/hdfs/hadoop-hdfs-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/jackson-mapper-asl-1.9.13.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/stax-api-1.0-2.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/jersey-server-1.9.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/servlet-api-2.5.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/jetty-util-6.1.26.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/jettison-1.1.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/commons-collections-3.2.1.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/jline-0.9.94.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/commons-codec-1.4.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/xz-1.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/jetty-6.1.26.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/jackson-core-asl-1.9.13.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/jersey-core-1.9.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/jersey-json-1.9.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/guice-3.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/jersey-client-1.9.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/commons-io-2.4.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/commons-logging-1.1.3.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/commons-httpclient-3.1.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/protobuf-java-2.5.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/jackson-jaxrs-1.9.13.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/commons-compress-1.4.1.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/log4j-1.2.17.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/javax.inject-1.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/activation-1.1.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/zookeeper-3.4.6.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/guava-11.0.2.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/commons-lang-2.6.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/aopalliance-1.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/commons-cli-1.2.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/jsr305-1.3.9.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/netty-3.6.2.Final.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/jaxb-api-2.2.2.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/leveldbjni-all-1.8.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/jackson-xc-1.9.13.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/jersey-guice-1.9.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/jaxb-impl-2.2.3-1.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/asm-3.2.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/lib/guice-servlet-3.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/hadoop-yarn-server-applicationhistoryservice-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/hadoop-yarn-registry-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/hadoop-yarn-server-tests-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/hadoop-yarn-server-nodemanager-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/hadoop-yarn-common-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/hadoop-yarn-client-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/hadoop-yarn-server-resourcemanager-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/hadoop-yarn-server-web-proxy-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/hadoop-yarn-server-common-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/hadoop-yarn-api-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/jackson-mapper-asl-1.9.13.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/jersey-server-1.9.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/xz-1.0.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/jackson-core-asl-1.9.13.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/jersey-core-1.9.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/avro-1.7.4.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/hamcrest-core-1.3.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/guice-3.0.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/commons-io-2.4.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/protobuf-java-2.5.0.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/commons-compress-1.4.1.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/log4j-1.2.17.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/javax.inject-1.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/snappy-java-1.0.4.1.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/aopalliance-1.0.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/netty-3.6.2.Final.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/paranamer-2.3.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/junit-4.11.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/hadoop-annotations-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/leveldbjni-all-1.8.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/jersey-guice-1.9.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/asm-3.2.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/lib/guice-servlet-3.0.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/hadoop-mapreduce-client-common-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/hadoop-mapreduce-client-app-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-plugins-2.6.0.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.6.0-tests.jar:/user/local/hadoop-2.6.0/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.6.0.jar:/user/local/hadoop-2.6.0/contrib/capacity-scheduler/*.jar:/user/local/hadoop-2.6.0/contrib/capacity-scheduler/*.jar
STARTUP_MSG:   build = Unknown -r Unknown; compiled by 'root' on 2016-06-16T22:12Z
STARTUP_MSG:   java = 1.7.0_67
************************************************************/
16/06/16 18:42:38 INFO namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]
16/06/16 18:42:38 INFO namenode.NameNode: createNameNode [-format]
Formatting using clusterid: CID-52468c8d-c0b2-48d6-b9fe-4cb05a748e5a
16/06/16 18:42:42 INFO namenode.FSNamesystem: No KeyProvider found.
16/06/16 18:42:42 INFO namenode.FSNamesystem: fsLock is fair:true
16/06/16 18:42:42 INFO blockmanagement.DatanodeManager: dfs.block.invalidate.limit=1000
16/06/16 18:42:42 INFO blockmanagement.DatanodeManager: dfs.namenode.datanode.registration.ip-hostname-check=true
16/06/16 18:42:42 INFO blockmanagement.BlockManager: dfs.namenode.startup.delay.block.deletion.sec is set to 000:00:00:00.000
16/06/16 18:42:42 INFO blockmanagement.BlockManager: The block deletion will start around 2016 Jun 16 18:42:42
16/06/16 18:42:42 INFO util.GSet: Computing capacity for map BlocksMap
16/06/16 18:42:42 INFO util.GSet: VM type       = 32-bit
16/06/16 18:42:42 INFO util.GSet: 2.0% max memory 966.7 MB = 19.3 MB
16/06/16 18:42:42 INFO util.GSet: capacity      = 2^22 = 4194304 entries
16/06/16 18:42:42 INFO blockmanagement.BlockManager: dfs.block.access.token.enable=false
16/06/16 18:42:42 INFO blockmanagement.BlockManager: defaultReplication         = 1
16/06/16 18:42:42 INFO blockmanagement.BlockManager: maxReplication             = 512
16/06/16 18:42:42 INFO blockmanagement.BlockManager: minReplication             = 1
16/06/16 18:42:42 INFO blockmanagement.BlockManager: maxReplicationStreams      = 2
16/06/16 18:42:42 INFO blockmanagement.BlockManager: shouldCheckForEnoughRacks  = false
16/06/16 18:42:42 INFO blockmanagement.BlockManager: replicationRecheckInterval = 3000
16/06/16 18:42:42 INFO blockmanagement.BlockManager: encryptDataTransfer        = false
16/06/16 18:42:42 INFO blockmanagement.BlockManager: maxNumBlocksToLog          = 1000
16/06/16 18:42:42 INFO namenode.FSNamesystem: fsOwner             = root (auth:SIMPLE)
16/06/16 18:42:42 INFO namenode.FSNamesystem: supergroup          = supergroup
16/06/16 18:42:42 INFO namenode.FSNamesystem: isPermissionEnabled = true
16/06/16 18:42:42 INFO namenode.FSNamesystem: HA Enabled: false
16/06/16 18:42:42 INFO namenode.FSNamesystem: Append Enabled: true
16/06/16 18:42:43 INFO util.GSet: Computing capacity for map INodeMap
16/06/16 18:42:43 INFO util.GSet: VM type       = 32-bit
16/06/16 18:42:43 INFO util.GSet: 1.0% max memory 966.7 MB = 9.7 MB
16/06/16 18:42:43 INFO util.GSet: capacity      = 2^21 = 2097152 entries
16/06/16 18:42:43 INFO namenode.NameNode: Caching file names occuring more than 10 times
16/06/16 18:42:43 INFO util.GSet: Computing capacity for map cachedBlocks
16/06/16 18:42:43 INFO util.GSet: VM type       = 32-bit
16/06/16 18:42:43 INFO util.GSet: 0.25% max memory 966.7 MB = 2.4 MB
16/06/16 18:42:43 INFO util.GSet: capacity      = 2^19 = 524288 entries
16/06/16 18:42:43 INFO namenode.FSNamesystem: dfs.namenode.safemode.threshold-pct = 0.9990000128746033
16/06/16 18:42:43 INFO namenode.FSNamesystem: dfs.namenode.safemode.min.datanodes = 0
16/06/16 18:42:43 INFO namenode.FSNamesystem: dfs.namenode.safemode.extension     = 30000
16/06/16 18:42:43 INFO namenode.FSNamesystem: Retry cache on namenode is enabled
16/06/16 18:42:43 INFO namenode.FSNamesystem: Retry cache will use 0.03 of total heap and retry cache entry expiry time is 600000 millis
16/06/16 18:42:43 INFO util.GSet: Computing capacity for map NameNodeRetryCache
16/06/16 18:42:43 INFO util.GSet: VM type       = 32-bit
16/06/16 18:42:43 INFO util.GSet: 0.029999999329447746% max memory 966.7 MB = 297.0 KB
16/06/16 18:42:43 INFO util.GSet: capacity      = 2^16 = 65536 entries
16/06/16 18:42:43 INFO namenode.NNConf: ACLs enabled? false
16/06/16 18:42:43 INFO namenode.NNConf: XAttrs enabled? true
16/06/16 18:42:43 INFO namenode.NNConf: Maximum size of an xattr: 16384
16/06/16 18:42:43 INFO namenode.FSImage: Allocated new BlockPoolId: BP-195969513-127.0.0.1-1466127763611
16/06/16 18:42:43 INFO common.Storage: Storage directory /home/hadoop/name has been successfully formatted.
16/06/16 18:42:44 INFO namenode.NNStorageRetentionManager: Going to retain 1 images with txid >= 0
16/06/16 18:42:44 INFO util.ExitUtil: Exiting with status 0
16/06/16 18:42:44 INFO namenode.NameNode: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at cdh1/127.0.0.1
************************************************************/
[root@cdh1 hdfs]# ls
[root@cdh1 hdfs]# jps
2695 Jps
[root@cdh1 hdfs]# start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
Starting namenodes on [cdh1]
cdh1: starting namenode, logging to /user/local/hadoop-2.6.0/logs/hadoop-root-namenode-cdh1.out
localhost: starting datanode, logging to /user/local/hadoop-2.6.0/logs/hadoop-root-datanode-cdh1.out
Starting secondary namenodes [cdh1]
cdh1: starting secondarynamenode, logging to /user/local/hadoop-2.6.0/logs/hadoop-root-secondarynamenode-cdh1.out
starting yarn daemons
starting resourcemanager, logging to /user/local/hadoop-2.6.0/logs/yarn-root-resourcemanager-cdh1.out
localhost: starting nodemanager, logging to /user/local/hadoop-2.6.0/logs/yarn-root-nodemanager-cdh1.out
[root@cdh1 hdfs]# jps
3005 SecondaryNameNode
2808 NameNode
3232 NodeManager
3144 ResourceManager
2890 DataNode
3441 Jps
[root@cdh1 hdfs]# hdfs dfs -ls
ls: Call From cdh1/127.0.0.1 to cdh1:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
[root@cdh1 hdfs]# su - hadoop
[hadoop@cdh1 ~]$ pwd
/home/hadoop
[hadoop@cdh1 ~]$ hdfs dfs -ls
ls: `.': No such file or directory
[hadoop@cdh1 ~]$ ls
data  name  tmp
[hadoop@cdh1 ~]$ hdfs dfs -ls
ls: `.': No such file or directory
[hadoop@cdh1 ~]$ getconf LONG_BIT
32
[hadoop@cdh1 ~]$ pwd
/home/hadoop
[hadoop@cdh1 ~]$ su root
Password: 
[root@cdh1 hadoop]# pwd
/home/hadoop
[root@cdh1 hadoop]# cd $HADOOP_HOME
[root@cdh1 hadoop-2.6.0]# LS
bash: LS: command not found
[root@cdh1 hadoop-2.6.0]# ls
bin  etc  include  lib  libexec  LICENSE.txt  logs  NOTICE.txt  README.txt  sbin  share
[root@cdh1 hadoop-2.6.0]# bin/hdfs dfs -ls
ls: `.': No such file or directory
[root@cdh1 hadoop-2.6.0]# ls -l
total 56
drwxr-xr-x 2 root root  4096 Jun 16 15:38 bin
drwxr-xr-x 3 root root  4096 Jun 16 15:37 etc
drwxr-xr-x 2 root root  4096 Jun 16 15:38 include
drwxr-xr-x 3 root root  4096 Jun 16 18:04 lib
drwxr-xr-x 2 root root  4096 Jun 16 15:38 libexec
-rw-r--r-- 1 root root 15429 Jun 16 15:37 LICENSE.txt
drwxr-xr-x 3 root root  4096 Jun 16 18:43 logs
-rw-r--r-- 1 root root   101 Jun 16 15:37 NOTICE.txt
-rw-r--r-- 1 root root  1366 Jun 16 15:37 README.txt
drwxr-xr-x 2 root root  4096 Jun 16 15:38 sbin
drwxr-xr-x 4 root root  4096 Jun 16 15:37 share
[root@cdh1 hadoop-2.6.0]# pwd
/user/local/hadoop-2.6.0
[root@cdh1 hadoop-2.6.0]# su hadoop
[hadoop@cdh1 hadoop-2.6.0]$ pwd
/user/local/hadoop-2.6.0
[hadoop@cdh1 hadoop-2.6.0]$ bin/hdfs dfs -ls
ls: `.': No such file or directory
[hadoop@cdh1 hadoop-2.6.0]$ bin/hdfs dfs -ls
ls: `.': No such file or directory
[hadoop@cdh1 hadoop-2.6.0]$ hdfs dfs -mkdir xmkdir
mkdir: `xmkdir': No such file or directory
[hadoop@cdh1 hadoop-2.6.0]$ bin/hdfs dfs -mkdir xmkdir
mkdir: `xmkdir': No such file or directory
[hadoop@cdh1 hadoop-2.6.0]$ su 
Password: 
[root@cdh1 hadoop-2.6.0]# pwd
/user/local/hadoop-2.6.0
[root@cdh1 hadoop-2.6.0]# bin/hdfs dfs -mkdir xmkdir
mkdir: `xmkdir': No such file or directory
[root@cdh1 hadoop-2.6.0]# bin/hdfs dfs -mkdir /xmkdir
[root@cdh1 hadoop-2.6.0]# ls -l
total 56
drwxr-xr-x 2 root root  4096 Jun 16 15:38 bin
drwxr-xr-x 3 root root  4096 Jun 16 15:37 etc
drwxr-xr-x 2 root root  4096 Jun 16 15:38 include
drwxr-xr-x 3 root root  4096 Jun 16 18:04 lib
drwxr-xr-x 2 root root  4096 Jun 16 15:38 libexec
-rw-r--r-- 1 root root 15429 Jun 16 15:37 LICENSE.txt
drwxr-xr-x 3 root root  4096 Jun 16 18:43 logs
-rw-r--r-- 1 root root   101 Jun 16 15:37 NOTICE.txt
-rw-r--r-- 1 root root  1366 Jun 16 15:37 README.txt
drwxr-xr-x 2 root root  4096 Jun 16 15:38 sbin
drwxr-xr-x 4 root root  4096 Jun 16 15:37 share
[root@cdh1 hadoop-2.6.0]# hdfs dfs -ls
ls: `.': No such file or directory
[root@cdh1 hadoop-2.6.0]# bin/hdfs dfs -ls
ls: `.': No such file or directory
[root@cdh1 hadoop-2.6.0]# bin/hdfs dfs -ls /
Found 1 items
drwxr-xr-x   - root supergroup          0 2016-06-16 21:31 /xmkdir
[root@cdh1 hadoop-2.6.0]# 

发表评论