Hadoop在eclipse端连接不上的问题

 

检查两个配置文件

检查环境配置文件

启动HADOOP

[root@hadoop01 sbin]# ./start-all.sh

This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh

Error: Cannot find configuration directory: /home/software/hadoop-2.7.1/etc/hadoop

starting yarn daemons

Error: Cannot find configuration directory: /home/software/hadoop-2.7.1/etc/hadoop

[root@hadoop01 sbin]# cd ../

[root@hadoop01 hadoop-2.7.1]# cd etc/hadoop/

[root@hadoop01 hadoop]# ls

capacity-scheduler.xml      httpfs-env.sh            mapred-env.sh

configuration.xsl           httpfs-log4j.properties  mapred-queues.xml.template

container-executor.cfg      httpfs-signature.secret  mapred-site.xml

core-site.xml               httpfs-site.xml          mapred-site.xml.template

hadoop-env.cmd              kms-acls.xml             slaves

hadoop-env.sh               kms-env.sh               ssl-client.xml.example

hadoop-metrics2.properties  kms-log4j.properties     ssl-server.xml.example

hadoop-metrics.properties   kms-site.xml             yarn-env.cmd

hadoop-policy.xml           log4j.properties         yarn-env.sh

hdfs-site.xml               mapred-env.cmd           yarn-site.xml

[root@hadoop01 hadoop]# vim hadoop-env.sh

[root@hadoop01 hadoop]# cd ../../

[root@hadoop01 hadoop-2.7.1]# sbin/start-all.sh

This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh

[Fatal Error] core-site.xml:23:3: The element type "value" must be terminated by the matching end-tag "</value>".

18/07/06 20:10:17 FATAL conf.Configuration: error parsing conf core-site.xml

org.xml.sax.SAXParseException; systemId: file:/home/teacher/software/hadoop-2.7.1/etc/hadoop/core-site.xml; lineNumber: 23; columnNumber: 3; The element type "value" must be terminated by the matching end-tag "</value>".

at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)

at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)

at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:150)

at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2480)

at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2468)

at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2539)

at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2492)

at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2405)

at org.apache.hadoop.conf.Configuration.set(Configuration.java:1143)

at org.apache.hadoop.conf.Configuration.set(Configuration.java:1115)

at org.apache.hadoop.conf.Configuration.setBoolean(Configuration.java:1451)

at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:321)

at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:487)

at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:170)

at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:153)

at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:64)

at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)

at org.apache.hadoop.hdfs.tools.GetConf.main(GetConf.java:332)

Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseException; systemId: file:/home/teacher/software/hadoop-2.7.1/etc/hadoop/core-site.xml; lineNumber: 23; columnNumber: 3; The element type "value" must be terminated by the matching end-tag "</value>".

at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2645)

at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2492)

at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2405)

at org.apache.hadoop.conf.Configuration.set(Configuration.java:1143)

at org.apache.hadoop.conf.Configuration.set(Configuration.java:1115)

at org.apache.hadoop.conf.Configuration.setBoolean(Configuration.java:1451)

at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:321)

at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:487)

at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:170)

at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:153)

at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:64)

at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)

at org.apache.hadoop.hdfs.tools.GetConf.main(GetConf.java:332)

Caused by: org.xml.sax.SAXParseException; systemId: file:/home/teacher/software/hadoop-2.7.1/etc/hadoop/core-site.xml; lineNumber: 23; columnNumber: 3; The element type "value" must be terminated by the matching end-tag "</value>".

at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)

at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)

at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:150)

at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2480)

at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2468)

at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2539)

... 12 more

Starting namenodes on []

The authenticity of host 'localhost (::1)' can't be established.

RSA key fingerprint is 88:0b:32:2f:1f:b5:80:72:fe:5f:04:57:d9:f1:a1:d6.

Are you sure you want to continue connecting (yes/no)? ^Z

[1]+  Stopped                 sbin/start-all.sh

[root@hadoop01 hadoop-2.7.1]# cd etc/hadoop/

[root@hadoop01 hadoop]# ls

capacity-scheduler.xml      httpfs-env.sh            mapred-env.sh

configuration.xsl           httpfs-log4j.properties  mapred-queues.xml.template

container-executor.cfg      httpfs-signature.secret  mapred-site.xml

core-site.xml               httpfs-site.xml          mapred-site.xml.template

hadoop-env.cmd              kms-acls.xml             slaves

hadoop-env.sh               kms-env.sh               ssl-client.xml.example

hadoop-metrics2.properties  kms-log4j.properties     ssl-server.xml.example

hadoop-metrics.properties   kms-site.xml             yarn-env.cmd

hadoop-policy.xml           log4j.properties         yarn-env.sh

hdfs-site.xml               mapred-env.cmd           yarn-site.xml

[root@hadoop01 hadoop]# vim core-site.xml

[root@hadoop01 hadoop]# ../../sbin/start-all.sh

This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh

18/07/06 20:11:11 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

Starting namenodes on [hadoop01]

hadoop01: Warning: Permanently added the RSA host key for IP address '192.168.74.131' to the list of known hosts.

hadoop01: starting namenode, logging to /home/teacher/software/hadoop-2.7.1/logs/hadoop-root-namenode-hadoop01.out

The authenticity of host 'localhost (::1)' can't be established.

RSA key fingerprint is 88:0b:32:2f:1f:b5:80:72:fe:5f:04:57:d9:f1:a1:d6.

Are you sure you want to continue connecting (yes/no)? t

Please type 'yes' or 'no': yes

localhost: Warning: Permanently added 'localhost' (RSA) to the list of known hosts.

localhost: starting datanode, logging to /home/teacher/software/hadoop-2.7.1/logs/hadoop-root-datanode-hadoop01.out

Starting secondary namenodes [0.0.0.0]

The authenticity of host '0.0.0.0 (0.0.0.0)' can't be established.

RSA key fingerprint is 88:0b:32:2f:1f:b5:80:72:fe:5f:04:57:d9:f1:a1:d6.

Are you sure you want to continue connecting (yes/no)? yes

0.0.0.0: Warning: Permanently added '0.0.0.0' (RSA) to the list of known hosts.

0.0.0.0: starting secondarynamenode, logging to /home/teacher/software/hadoop-2.7.1/logs/hadoop-root-secondarynamenode-hadoop01.out

18/07/06 20:11:43 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

starting yarn daemons

starting resourcemanager, logging to /home/teacher/software/hadoop-2.7.1/logs/yarn-test-resourcemanager-hadoop01.out

localhost: starting nodemanager, logging to /home/teacher/software/hadoop-2.7.1/logs/yarn-root-nodemanager-hadoop01.out

[root@hadoop01 hadoop]# jps

5075 Jps

4922 NodeManager

4685 SecondaryNameNode

4830 ResourceManager

4543 DataNode

[root@hadoop01 hadoop]# cd ../../

[root@hadoop01 hadoop-2.7.1]# l

bash: l: command not found

[root@hadoop01 hadoop-2.7.1]# ls

bin  include  libexec      logs        README.txt  share

etc  lib      LICENSE.txt  NOTICE.txt  sbin        tmp

[root@hadoop01 hadoop-2.7.1]# rm -rt tmp/

rm: invalid option -- 't'

Try `rm --help' for more information.

[root@hadoop01 hadoop-2.7.1]# sbin/stop-all.sh

This script is Deprecated. Instead use stop-dfs.sh and stop-yarn.sh

18/07/06 20:12:44 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

Stopping namenodes on [hadoop01]

hadoop01: no namenode to stop

localhost: stopping datanode

Stopping secondary namenodes [0.0.0.0]

0.0.0.0: stopping secondarynamenode

18/07/06 20:13:01 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

stopping yarn daemons

stopping resourcemanager

localhost: stopping nodemanager

no proxyserver to stop

[root@hadoop01 hadoop-2.7.1]# rm -rf tmp

[root@hadoop01 hadoop-2.7.1]# hadoop namenode -format

DEPRECATED: Use of this script to execute hdfs command is deprecated.

Instead use the hdfs command for it.

 

18/07/06 20:15:31 INFO namenode.NameNode: STARTUP_MSG:

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

STARTUP_MSG: Starting NameNode

STARTUP_MSG:   host = hadoop01/192.168.74.131

STARTUP_MSG:   args = [-format]

STARTUP_MSG:   version = 2.7.1

STARTUP_MSG:   classpath = /home/teacher/software/hadoop-2.7.1/etc/hadoop:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/jsch-0.1.42.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/jaxb-impl-2.2.3-1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/curator-framework-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/xmlenc-0.52.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/commons-cli-1.2.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/commons-codec-1.4.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/hamcrest-core-1.3.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/paranamer-2.3.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/jettison-1.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/jsr305-3.0.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/jets3t-0.9.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/api-util-1.0.0-M20.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/httpclient-4.2.5.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/commons-collections-3.2.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/htrace-core-3.1.0-incubating.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/curator-recipes-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/curator-client-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/commons-logging-1.1.3.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/log4j-1.2.17.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/commons-io-2.4.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/apacheds-i18n-2.0.0-M15.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/hadoop-annotations-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/servlet-api-2.5.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/guava-11.0.2.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/commons-configuration-1.6.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/jackson-mapper-asl-1.9.13.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/commons-beanutils-core-1.8.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/jsp-api-2.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/snappy-java-1.0.4.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/netty-3.6.2.Final.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/junit-4.11.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/commons-lang-2.6.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/activation-1.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/jaxb-api-2.2.2.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/mockito-all-1.8.5.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/gson-2.2.4.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/apacheds-kerberos-codec-2.0.0-M15.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/commons-digester-1.8.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/jersey-server-1.9.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/hadoop-auth-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/asm-3.2.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/jersey-core-1.9.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/commons-beanutils-1.7.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/stax-api-1.0-2.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/commons-net-3.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/jetty-util-6.1.26.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/httpcore-4.2.5.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/jersey-json-1.9.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/jackson-core-asl-1.9.13.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/protobuf-java-2.5.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/zookeeper-3.4.6.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/xz-1.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/commons-httpclient-3.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/slf4j-api-1.7.10.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/jetty-6.1.26.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/avro-1.7.4.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/java-xmlbuilder-0.4.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/commons-math3-3.1.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/api-asn1-api-1.0.0-M20.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/commons-compress-1.4.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/jackson-jaxrs-1.9.13.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/lib/jackson-xc-1.9.13.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/hadoop-nfs-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/hadoop-common-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/common/hadoop-common-2.7.1-tests.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/xmlenc-0.52.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/commons-cli-1.2.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/commons-codec-1.4.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/jsr305-3.0.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/htrace-core-3.1.0-incubating.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/commons-logging-1.1.3.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/log4j-1.2.17.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/commons-io-2.4.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/servlet-api-2.5.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/guava-11.0.2.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/commons-daemon-1.0.13.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/jackson-mapper-asl-1.9.13.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/netty-all-4.0.23.Final.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/netty-3.6.2.Final.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/commons-lang-2.6.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/jersey-server-1.9.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/xercesImpl-2.9.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/asm-3.2.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/jersey-core-1.9.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/jetty-util-6.1.26.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/jackson-core-asl-1.9.13.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/protobuf-java-2.5.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/xml-apis-1.3.04.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/jetty-6.1.26.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/lib/leveldbjni-all-1.8.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/hadoop-hdfs-nfs-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/hadoop-hdfs-2.7.1-tests.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/hdfs/hadoop-hdfs-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/jaxb-impl-2.2.3-1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/commons-cli-1.2.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/commons-codec-1.4.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/jettison-1.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/jsr305-3.0.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/guice-servlet-3.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/commons-collections-3.2.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/commons-logging-1.1.3.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/log4j-1.2.17.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/commons-io-2.4.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/guice-3.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/servlet-api-2.5.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/guava-11.0.2.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/jersey-client-1.9.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/jackson-mapper-asl-1.9.13.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/netty-3.6.2.Final.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/commons-lang-2.6.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/activation-1.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/jaxb-api-2.2.2.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/jersey-server-1.9.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/zookeeper-3.4.6-tests.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/asm-3.2.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/jersey-core-1.9.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/aopalliance-1.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/stax-api-1.0-2.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/jetty-util-6.1.26.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/javax.inject-1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/jersey-json-1.9.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/jackson-core-asl-1.9.13.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/protobuf-java-2.5.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/zookeeper-3.4.6.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/xz-1.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/jersey-guice-1.9.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/jetty-6.1.26.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/commons-compress-1.4.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/jackson-jaxrs-1.9.13.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/jackson-xc-1.9.13.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/lib/leveldbjni-all-1.8.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/hadoop-yarn-api-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/hadoop-yarn-client-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/hadoop-yarn-server-resourcemanager-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/hadoop-yarn-registry-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/hadoop-yarn-server-sharedcachemanager-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/hadoop-yarn-common-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/hadoop-yarn-server-tests-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/hadoop-yarn-server-common-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/hadoop-yarn-server-web-proxy-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/hadoop-yarn-server-applicationhistoryservice-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/hadoop-yarn-server-nodemanager-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/hamcrest-core-1.3.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/paranamer-2.3.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/guice-servlet-3.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/log4j-1.2.17.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/commons-io-2.4.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/guice-3.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/hadoop-annotations-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/jackson-mapper-asl-1.9.13.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/snappy-java-1.0.4.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/netty-3.6.2.Final.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/junit-4.11.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/jersey-server-1.9.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/asm-3.2.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/jersey-core-1.9.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/aopalliance-1.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/javax.inject-1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/jackson-core-asl-1.9.13.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/protobuf-java-2.5.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/xz-1.0.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/jersey-guice-1.9.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/avro-1.7.4.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/commons-compress-1.4.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/lib/leveldbjni-all-1.8.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/hadoop-mapreduce-client-app-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/hadoop-mapreduce-client-common-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.7.1-tests.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-plugins-2.7.1.jar:/home/teacher/software/hadoop-2.7.1/contrib/capacity-scheduler/*.jar:/home/teacher/software/hadoop-2.7.1/contrib/capacity-scheduler/*.jar

STARTUP_MSG:   build = https://git-wip-us.apache.org/repos/asf/hadoop.git -r 15ecc87ccf4a0228f35af08fc56de536e6ce657a; compiled by 'jenkins' on 2015-06-29T06:04Z

STARTUP_MSG:   java = 1.8.0_65

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

18/07/06 20:15:31 INFO namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]

18/07/06 20:15:31 INFO namenode.NameNode: createNameNode [-format]

18/07/06 20:15:31 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

Formatting using clusterid: CID-af388da9-2795-4b0a-a522-b54d3011b2fb

18/07/06 20:15:32 INFO namenode.FSNamesystem: No KeyProvider found.

18/07/06 20:15:32 INFO namenode.FSNamesystem: fsLock is fair:true

18/07/06 20:15:32 INFO blockmanagement.DatanodeManager: dfs.block.invalidate.limit=1000

18/07/06 20:15:32 INFO blockmanagement.DatanodeManager: dfs.namenode.datanode.registration.ip-hostname-check=true

18/07/06 20:15:32 INFO blockmanagement.BlockManager: dfs.namenode.startup.delay.block.deletion.sec is set to 000:00:00:00.000

18/07/06 20:15:32 INFO blockmanagement.BlockManager: The block deletion will start around 2018 Jul 06 20:15:32

18/07/06 20:15:32 INFO util.GSet: Computing capacity for map BlocksMap

18/07/06 20:15:32 INFO util.GSet: VM type       = 64-bit

18/07/06 20:15:32 INFO util.GSet: 2.0% max memory 966.7 MB = 19.3 MB

18/07/06 20:15:32 INFO util.GSet: capacity      = 2^21 = 2097152 entries

18/07/06 20:15:32 INFO blockmanagement.BlockManager: dfs.block.access.token.enable=false

18/07/06 20:15:32 INFO blockmanagement.BlockManager: defaultReplication         = 1

18/07/06 20:15:32 INFO blockmanagement.BlockManager: maxReplication             = 512

18/07/06 20:15:32 INFO blockmanagement.BlockManager: minReplication             = 1

18/07/06 20:15:32 INFO blockmanagement.BlockManager: maxReplicationStreams      = 2

18/07/06 20:15:32 INFO blockmanagement.BlockManager: shouldCheckForEnoughRacks  = false

18/07/06 20:15:32 INFO blockmanagement.BlockManager: replicationRecheckInterval = 3000

18/07/06 20:15:32 INFO blockmanagement.BlockManager: encryptDataTransfer        = false

18/07/06 20:15:32 INFO blockmanagement.BlockManager: maxNumBlocksToLog          = 1000

18/07/06 20:15:32 INFO namenode.FSNamesystem: fsOwner             = root (auth:SIMPLE)

18/07/06 20:15:32 INFO namenode.FSNamesystem: supergroup          = supergroup

18/07/06 20:15:32 INFO namenode.FSNamesystem: isPermissionEnabled = false

18/07/06 20:15:32 INFO namenode.FSNamesystem: HA Enabled: false

18/07/06 20:15:32 INFO namenode.FSNamesystem: Append Enabled: true

18/07/06 20:15:32 INFO util.GSet: Computing capacity for map INodeMap

18/07/06 20:15:32 INFO util.GSet: VM type       = 64-bit

18/07/06 20:15:32 INFO util.GSet: 1.0% max memory 966.7 MB = 9.7 MB

18/07/06 20:15:32 INFO util.GSet: capacity      = 2^20 = 1048576 entries

18/07/06 20:15:32 INFO namenode.FSDirectory: ACLs enabled? false

18/07/06 20:15:32 INFO namenode.FSDirectory: XAttrs enabled? true

18/07/06 20:15:32 INFO namenode.FSDirectory: Maximum size of an xattr: 16384

18/07/06 20:15:32 INFO namenode.NameNode: Caching file names occuring more than 10 times

18/07/06 20:15:32 INFO util.GSet: Computing capacity for map cachedBlocks

18/07/06 20:15:32 INFO util.GSet: VM type       = 64-bit

18/07/06 20:15:32 INFO util.GSet: 0.25% max memory 966.7 MB = 2.4 MB

18/07/06 20:15:32 INFO util.GSet: capacity      = 2^18 = 262144 entries

18/07/06 20:15:32 INFO namenode.FSNamesystem: dfs.namenode.safemode.threshold-pct = 0.9990000128746033

18/07/06 20:15:32 INFO namenode.FSNamesystem: dfs.namenode.safemode.min.datanodes = 0

18/07/06 20:15:32 INFO namenode.FSNamesystem: dfs.namenode.safemode.extension     = 30000

18/07/06 20:15:32 INFO metrics.TopMetrics: NNTop conf: dfs.namenode.top.window.num.buckets = 10

18/07/06 20:15:32 INFO metrics.TopMetrics: NNTop conf: dfs.namenode.top.num.users = 10

18/07/06 20:15:32 INFO metrics.TopMetrics: NNTop conf: dfs.namenode.top.windows.minutes = 1,5,25

18/07/06 20:15:32 INFO namenode.FSNamesystem: Retry cache on namenode is enabled

18/07/06 20:15:32 INFO namenode.FSNamesystem: Retry cache will use 0.03 of total heap and retry cache entry expiry time is 600000 millis

18/07/06 20:15:33 INFO util.GSet: Computing capacity for map NameNodeRetryCache

18/07/06 20:15:33 INFO util.GSet: VM type       = 64-bit

18/07/06 20:15:33 INFO util.GSet: 0.029999999329447746% max memory 966.7 MB = 297.0 KB

18/07/06 20:15:33 INFO util.GSet: capacity      = 2^15 = 32768 entries

18/07/06 20:15:33 INFO namenode.FSImage: Allocated new BlockPoolId: BP-840530885-192.168.74.131-1530933333114

18/07/06 20:15:33 INFO common.Storage: Storage directory /home/teacher/software/hadoop-2.7.1/tmp/dfs/name has been successfully formatted.

18/07/06 20:15:33 INFO namenode.NNStorageRetentionManager: Going to retain 1 images with txid >= 0

18/07/06 20:15:33 INFO util.ExitUtil: Exiting with status 0

18/07/06 20:15:33 INFO namenode.NameNode: SHUTDOWN_MSG:

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

SHUTDOWN_MSG: Shutting down NameNode at hadoop01/192.168.74.131

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

[root@hadoop01 hadoop-2.7.1]#

[root@hadoop01 hadoop-2.7.1]# ls

bin  include  libexec      logs        README.txt  share

etc  lib      LICENSE.txt  NOTICE.txt  sbin        tmp

[root@hadoop01 hadoop-2.7.1]# cd sbin/

[root@hadoop01 sbin]# ls

distribute-exclude.sh    start-all.cmd        stop-balancer.sh

hadoop-daemon.sh         start-all.sh         stop-dfs.cmd

hadoop-daemons.sh        start-balancer.sh    stop-dfs.sh

hdfs-config.cmd          start-dfs.cmd        stop-secure-dns.sh

hdfs-config.sh           start-dfs.sh         stop-yarn.cmd

httpfs.sh                start-secure-dns.sh  stop-yarn.sh

kms.sh                   start-yarn.cmd       yarn-daemon.sh

mr-jobhistory-daemon.sh  start-yarn.sh        yarn-daemons.sh

refresh-namenodes.sh     stop-all.cmd

slaves.sh                stop-all.sh

[root@hadoop01 sbin]# ./start-all.cmd

./start-all.cmd: line 1: @echo: command not found

./start-all.cmd: line 2: syntax error near unexpected token `('

./start-all.cmd: line 2: `@rem Licensed to the Apache Software Foundation (ASF) 'nder one or more

[root@hadoop01 sbin]# ./start-all.sh

This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh

18/07/06 20:16:05 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

Starting namenodes on [hadoop01]

hadoop01: starting namenode, logging to /home/teacher/software/hadoop-2.7.1/logs/hadoop-root-namenode-hadoop01.out

localhost: starting datanode, logging to /home/teacher/software/hadoop-2.7.1/logs/hadoop-root-datanode-hadoop01.out

Starting secondary namenodes [0.0.0.0]

0.0.0.0: starting secondarynamenode, logging to /home/teacher/software/hadoop-2.7.1/logs/hadoop-root-secondarynamenode-hadoop01.out

18/07/06 20:16:28 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

starting yarn daemons

starting resourcemanager, logging to /home/teacher/software/hadoop-2.7.1/logs/yarn-test-resourcemanager-hadoop01.out

localhost: starting nodemanager, logging to /home/teacher/software/hadoop-2.7.1/logs/yarn-root-nodemanager-hadoop01.out

[root@hadoop01 sbin]# jps

5955 DataNode

6292 ResourceManager

6389 NodeManager

5861 NameNode

6602 Jps

6142 SecondaryNameNode


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值