赞
踩
启动hadoop前格式化namenode出现以下错误
[root@hadoop1 hadoop]# hadoop namenode -format
WARNING: Use of this script to execute namenode is deprecated.
WARNING: Attempting to execute replacement "hdfs namenode" instead.2022-11-04 03:40:58,790 INFO namenode.NameNode: STARTUP_MSG:
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG: host = hadoop1/192.168.69.137
STARTUP_MSG: args = [-format]
STARTUP_MSG: version = 3.2.2
STARTUP_MSG: classpath = /app/hadoop3.2/etc/hadoop:/app/hadoop3.2/share/hadoop/common/lib/jetty-security-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/common/lib/asm-5.0.4.jar:/app/hadoop3.2/share/hadoop/common/lib/kerb-crypto-1.0.1.jar:/app/hadoop3.2/share/hadoop/common/lib/accessors-smart-1.2.jar:/app/hadoop3.2/share/hadoop/common/lib/commons-configuration2-2.1.1.jar:/app/hadoop3.2/share/hadoop/common/lib/kerb-core-1.0.1.jar:/app/hadoop3.2/share/hadoop/common/lib/commons-collections-3.2.2.jar:/app/hadoop3.2/share/hadoop/common/lib/jetty-server-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/common/lib/nimbus-jose-jwt-7.9.jar:/app/hadoop3.2/share/hadoop/common/lib/dnsjava-2.1.7.jar:/app/hadoop3.2/share/hadoop/common/lib/commons-cli-1.2.jar:/app/hadoop3.2/share/hadoop/common/lib/jsr311-api-1.1.1.jar:/app/hadoop3.2/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar:/app/hadoop3.2/share/hadoop/common/lib/audience-annotations-0.5.0.jar:/app/hadoop3.2/share/hadoop/common/lib/j2objc-annotations-1.1.jar:/app/hadoop3.2/share/hadoop/common/lib/stax2-api-3.1.4.jar:/app/hadoop3.2/share/hadoop/common/lib/kerby-asn1-1.0.1.jar:/app/hadoop3.2/share/hadoop/common/lib/httpcore-4.4.13.jar:/app/hadoop3.2/share/hadoop/common/lib/jsch-0.1.55.jar:/app/hadoop3.2/share/hadoop/common/lib/commons-beanutils-1.9.4.jar:/app/hadoop3.2/share/hadoop/common/lib/kerby-pkix-1.0.1.jar:/app/hadoop3.2/share/hadoop/common/lib/curator-framework-2.13.0.jar:/app/hadoop3.2/share/hadoop/common/lib/token-provider-1.0.1.jar:/app/hadoop3.2/share/hadoop/common/lib/jackson-core-2.9.10.jar:/app/hadoop3.2/share/hadoop/common/lib/snappy-java-1.0.5.jar:/app/hadoop3.2/share/hadoop/common/lib/jetty-http-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/common/lib/re2j-1.1.jar:/app/hadoop3.2/share/hadoop/common/lib/jetty-util-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/common/lib/protobuf-java-2.5.0.jar:/app/hadoop3.2/share/hadoop/common/lib/jul-to-slf4j-1.7.25.jar:/app/hadoop3.2/share/hadoop/common/lib/jackson-databind-2.9.10.4.jar:/app/hadoop3.2/share/hadoop/common/lib/failureaccess-1.0.jar:/app/hadoop3.2/share/hadoop/common/lib/zookeeper-3.4.13.jar:/app/hadoop3.2/share/hadoop/common/lib/error_prone_annotations-2.2.0.jar:/app/hadoop3.2/share/hadoop/common/lib/httpclient-4.5.13.jar:/app/hadoop3.2/share/hadoop/common/lib/commons-text-1.4.jar:/app/hadoop3.2/share/hadoop/common/lib/jackson-xc-1.9.13.jar:/app/hadoop3.2/share/hadoop/common/lib/jaxb-api-2.2.11.jar:/app/hadoop3.2/share/hadoop/common/lib/javax.servlet-api-3.1.0.jar:/app/hadoop3.2/share/hadoop/common/lib/woodstox-core-5.0.3.jar:/app/hadoop3.2/share/hadoop/common/lib/json-smart-2.3.jar:/app/hadoop3.2/share/hadoop/common/lib/commons-compress-1.19.jar:/app/hadoop3.2/share/hadoop/common/lib/kerby-config-1.0.1.jar:/app/hadoop3.2/share/hadoop/common/lib/avro-1.7.7.jar:/app/hadoop3.2/share/hadoop/common/lib/guava-27.0-jre.jar:/app/hadoop3.2/share/hadoop/common/lib/slf4j-api-1.7.25.jar:/app/hadoop3.2/share/hadoop/common/lib/jsp-api-2.1.jar:/app/hadoop3.2/share/hadoop/common/lib/hadoop-auth-3.2.2.jar:/app/hadoop3.2/share/hadoop/common/lib/jackson-core-asl-1.9.13.jar:/app/hadoop3.2/share/hadoop/common/lib/jersey-server-1.19.jar:/app/hadoop3.2/share/hadoop/common/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/app/hadoop3.2/share/hadoop/common/lib/netty-3.10.6.Final.jar:/app/hadoop3.2/share/hadoop/common/lib/jersey-core-1.19.jar:/app/hadoop3.2/share/hadoop/common/lib/commons-net-3.6.jar:/app/hadoop3.2/share/hadoop/common/lib/commons-logging-1.1.3.jar:/app/hadoop3.2/share/hadoop/common/lib/jackson-mapper-asl-1.9.13.jar:/app/hadoop3.2/share/hadoop/common/lib/jersey-json-1.19.jar:/app/hadoop3.2/share/hadoop/common/lib/curator-client-2.13.0.jar:/app/hadoop3.2/share/hadoop/common/lib/kerby-util-1.0.1.jar:/app/hadoop3.2/share/hadoop/common/lib/commons-io-2.5.jar:/app/hadoop3.2/share/hadoop/common/lib/paranamer-2.3.jar:/app/hadoop3.2/share/hadoop/common/lib/kerb-simplekdc-1.0.1.jar:/app/hadoop3.2/share/hadoop/common/lib/javax.activation-api-1.2.0.jar:/app/hadoop3.2/share/hadoop/common/lib/hadoop-annotations-3.2.2.jar:/app/hadoop3.2/share/hadoop/common/lib/metrics-core-3.2.4.jar:/app/hadoop3.2/share/hadoop/common/lib/jsr305-3.0.2.jar:/app/hadoop3.2/share/hadoop/common/lib/jcip-annotations-1.0-1.jar:/app/hadoop3.2/share/hadoop/common/lib/jersey-servlet-1.19.jar:/app/hadoop3.2/share/hadoop/common/lib/kerb-client-1.0.1.jar:/app/hadoop3.2/share/hadoop/common/lib/commons-codec-1.11.jar:/app/hadoop3.2/share/hadoop/common/lib/jetty-servlet-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/common/lib/commons-lang3-3.7.jar:/app/hadoop3.2/share/hadoop/common/lib/checker-qual-2.5.2.jar:/app/hadoop3.2/share/hadoop/common/lib/jetty-xml-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/common/lib/jetty-io-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/common/lib/jackson-jaxrs-1.9.13.jar:/app/hadoop3.2/share/hadoop/common/lib/curator-recipes-2.13.0.jar:/app/hadoop3.2/share/hadoop/common/lib/kerb-identity-1.0.1.jar:/app/hadoop3.2/share/hadoop/common/lib/commons-math3-3.1.1.jar:/app/hadoop3.2/share/hadoop/common/lib/kerb-server-1.0.1.jar:/app/hadoop3.2/share/hadoop/common/lib/jackson-annotations-2.9.10.jar:/app/hadoop3.2/share/hadoop/common/lib/kerb-admin-1.0.1.jar:/app/hadoop3.2/share/hadoop/common/lib/kerby-xdr-1.0.1.jar:/app/hadoop3.2/share/hadoop/common/lib/kerb-common-1.0.1.jar:/app/hadoop3.2/share/hadoop/common/lib/gson-2.2.4.jar:/app/hadoop3.2/share/hadoop/common/lib/jetty-webapp-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/common/lib/jettison-1.1.jar:/app/hadoop3.2/share/hadoop/common/lib/kerb-util-1.0.1.jar:/app/hadoop3.2/share/hadoop/common/lib/log4j-1.2.17.jar:/app/hadoop3.2/share/hadoop/common/lib/htrace-core4-4.1.0-incubating.jar:/app/hadoop3.2/share/hadoop/common/lib/jaxb-impl-2.2.3-1.jar:/app/hadoop3.2/share/hadoop/common/lib/animal-sniffer-annotations-1.17.jar:/app/hadoop3.2/share/hadoop/common/hadoop-common-3.2.2-tests.jar:/app/hadoop3.2/share/hadoop/common/hadoop-nfs-3.2.2.jar:/app/hadoop3.2/share/hadoop/common/hadoop-kms-3.2.2.jar:/app/hadoop3.2/share/hadoop/common/hadoop-common-3.2.2.jar:/app/hadoop3.2/share/hadoop/hdfs:/app/hadoop3.2/share/hadoop/hdfs/lib/jetty-security-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/asm-5.0.4.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/kerb-crypto-1.0.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/accessors-smart-1.2.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/commons-configuration2-2.1.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/kerb-core-1.0.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/commons-collections-3.2.2.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jetty-server-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/nimbus-jose-jwt-7.9.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/dnsjava-2.1.7.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/commons-cli-1.2.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jsr311-api-1.1.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/audience-annotations-0.5.0.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/j2objc-annotations-1.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/stax2-api-3.1.4.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/kerby-asn1-1.0.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/httpcore-4.4.13.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/commons-daemon-1.0.13.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jsch-0.1.55.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/commons-beanutils-1.9.4.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/kerby-pkix-1.0.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/curator-framework-2.13.0.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/token-provider-1.0.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jackson-core-2.9.10.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/json-simple-1.1.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/snappy-java-1.0.5.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jetty-http-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/re2j-1.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jetty-util-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/protobuf-java-2.5.0.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jackson-databind-2.9.10.4.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/failureaccess-1.0.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/zookeeper-3.4.13.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/leveldbjni-all-1.8.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/error_prone_annotations-2.2.0.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/httpclient-4.5.13.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/commons-text-1.4.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jackson-xc-1.9.13.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jaxb-api-2.2.11.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/javax.servlet-api-3.1.0.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/woodstox-core-5.0.3.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/json-smart-2.3.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/commons-compress-1.19.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/kerby-config-1.0.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/avro-1.7.7.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/guava-27.0-jre.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/hadoop-auth-3.2.2.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jackson-core-asl-1.9.13.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jersey-server-1.19.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/okio-1.6.0.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/netty-3.10.6.Final.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jersey-core-1.19.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/okhttp-2.7.5.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/commons-net-3.6.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/commons-logging-1.1.3.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jackson-mapper-asl-1.9.13.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jersey-json-1.19.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/curator-client-2.13.0.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/kerby-util-1.0.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/commons-io-2.5.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/paranamer-2.3.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/kerb-simplekdc-1.0.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/javax.activation-api-1.2.0.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/hadoop-annotations-3.2.2.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/netty-all-4.1.48.Final.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jsr305-3.0.2.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jcip-annotations-1.0-1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jersey-servlet-1.19.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/kerb-client-1.0.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/commons-codec-1.11.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jetty-util-ajax-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jetty-servlet-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/commons-lang3-3.7.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/checker-qual-2.5.2.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jetty-xml-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jetty-io-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jackson-jaxrs-1.9.13.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/curator-recipes-2.13.0.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/kerb-identity-1.0.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/commons-math3-3.1.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/kerb-server-1.0.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jackson-annotations-2.9.10.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/kerb-admin-1.0.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/kerby-xdr-1.0.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/kerb-common-1.0.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/gson-2.2.4.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jetty-webapp-9.4.20.v20190813.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jettison-1.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/kerb-util-1.0.1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/log4j-1.2.17.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/htrace-core4-4.1.0-incubating.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/jaxb-impl-2.2.3-1.jar:/app/hadoop3.2/share/hadoop/hdfs/lib/animal-sniffer-annotations-1.17.jar:/app/hadoop3.2/share/hadoop/hdfs/hadoop-hdfs-client-3.2.2-tests.jar:/app/hadoop3.2/share/hadoop/hdfs/hadoop-hdfs-3.2.2.jar:/app/hadoop3.2/share/hadoop/hdfs/hadoop-hdfs-native-client-3.2.2.jar:/app/hadoop3.2/share/hadoop/hdfs/hadoop-hdfs-native-client-3.2.2-tests.jar:/app/hadoop3.2/share/hadoop/hdfs/hadoop-hdfs-rbf-3.2.2-tests.jar:/app/hadoop3.2/share/hadoop/hdfs/hadoop-hdfs-httpfs-3.2.2.jar:/app/hadoop3.2/share/hadoop/hdfs/hadoop-hdfs-client-3.2.2.jar:/app/hadoop3.2/share/hadoop/hdfs/hadoop-hdfs-rbf-3.2.2.jar:/app/hadoop3.2/share/hadoop/hdfs/hadoop-hdfs-3.2.2-tests.jar:/app/hadoop3.2/share/hadoop/hdfs/hadoop-hdfs-nfs-3.2.2.jar:/app/hadoop3.2/share/hadoop/mapreduce/lib/hamcrest-core-1.3.jar:/app/hadoop3.2/share/hadoop/mapreduce/lib/junit-4.11.jar:/app/hadoop3.2/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.2.2.jar:/app/hadoop3.2/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-plugins-3.2.2.jar:/app/hadoop3.2/share/hadoop/mapreduce/hadoop-mapreduce-client-app-3.2.2.jar:/app/hadoop3.2/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-3.2.2-tests.jar:/app/hadoop3.2/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-3.2.2.jar:/app/hadoop3.2/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-3.2.2.jar:/app/hadoop3.2/share/hadoop/mapreduce/hadoop-mapreduce-client-common-3.2.2.jar:/app/hadoop3.2/share/hadoop/mapreduce/hadoop-mapreduce-client-core-3.2.2.jar:/app/hadoop3.2/share/hadoop/mapreduce/hadoop-mapreduce-client-uploader-3.2.2.jar:/app/hadoop3.2/share/hadoop/mapreduce/hadoop-mapreduce-client-nativetask-3.2.2.jar:/app/hadoop3.2/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn:/app/hadoop3.2/share/hadoop/yarn/lib/javax.inject-1.jar:/app/hadoop3.2/share/hadoop/yarn/lib/geronimo-jcache_1.0_spec-1.0-alpha-1.jar:/app/hadoop3.2/share/hadoop/yarn/lib/java-util-1.9.0.jar:/app/hadoop3.2/share/hadoop/yarn/lib/jackson-jaxrs-json-provider-2.9.10.jar:/app/hadoop3.2/share/hadoop/yarn/lib/swagger-annotations-1.5.4.jar:/app/hadoop3.2/share/hadoop/yarn/lib/guice-4.0.jar:/app/hadoop3.2/share/hadoop/yarn/lib/jackson-module-jaxb-annotations-2.9.10.jar:/app/hadoop3.2/share/hadoop/yarn/lib/guice-servlet-4.0.jar:/app/hadoop3.2/share/hadoop/yarn/lib/jackson-jaxrs-base-2.9.10.jar:/app/hadoop3.2/share/hadoop/yarn/lib/ehcache-3.3.1.jar:/app/hadoop3.2/share/hadoop/yarn/lib/fst-2.50.jar:/app/hadoop3.2/share/hadoop/yarn/lib/snakeyaml-1.16.jar:/app/hadoop3.2/share/hadoop/yarn/lib/json-io-2.5.1.jar:/app/hadoop3.2/share/hadoop/yarn/lib/mssql-jdbc-6.2.1.jre7.jar:/app/hadoop3.2/share/hadoop/yarn/lib/HikariCP-java7-2.4.12.jar:/app/hadoop3.2/share/hadoop/yarn/lib/jersey-guice-1.19.jar:/app/hadoop3.2/share/hadoop/yarn/lib/bcpkix-jdk15on-1.60.jar:/app/hadoop3.2/share/hadoop/yarn/lib/metrics-core-3.2.4.jar:/app/hadoop3.2/share/hadoop/yarn/lib/objenesis-1.0.jar:/app/hadoop3.2/share/hadoop/yarn/lib/bcprov-jdk15on-1.60.jar:/app/hadoop3.2/share/hadoop/yarn/lib/jersey-client-1.19.jar:/app/hadoop3.2/share/hadoop/yarn/lib/aopalliance-1.0.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-submarine-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-server-web-proxy-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-server-tests-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-server-sharedcachemanager-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-services-core-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-server-resourcemanager-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-server-timeline-pluginstorage-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-server-common-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-server-router-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-server-nodemanager-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-services-api-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-server-applicationhistoryservice-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-client-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-api-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-registry-3.2.2.jar:/app/hadoop3.2/share/hadoop/yarn/hadoop-yarn-common-3.2.2.jar
STARTUP_MSG: build = Unknown -r 7a3bc90b05f257c8ace2f76d74264906f0f7a932; compiled by 'hexiaoqiao' on 2021-01-03T09:26Z
STARTUP_MSG: java = 1.8.0_144
************************************************************/
2022-11-04 03:40:58,807 INFO namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]
2022-11-04 03:40:58,946 ERROR conf.Configuration: error parsing conf core-site.xml
com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </property>; expected </description>.
at [row,col,system-id]: [24,10,"file:/app/hadoop3.2/etc/hadoop/core-site.xml"]
at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:621)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:491)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:475)
at com.ctc.wstx.sr.BasicStreamReader.reportWrongEndElem(BasicStreamReader.java:3365)
at com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3292)
at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2911)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1123)
at org.apache.hadoop.conf.Configuration$Parser.parseNext(Configuration.java:3336)
at org.apache.hadoop.conf.Configuration$Parser.parse(Configuration.java:3130)
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3023)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2984)
at org.apache.hadoop.conf.Configuration.loadProps(Configuration.java:2864)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2846)
at org.apache.hadoop.conf.Configuration.get(Configuration.java:1200)
at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1812)
at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1789)
at org.apache.hadoop.util.ShutdownHookManager.getShutdownTimeout(ShutdownHookManager.java:183)
at org.apache.hadoop.util.ShutdownHookManager$HookEntry.<init>(ShutdownHookManager.java:207)
at org.apache.hadoop.util.ShutdownHookManager.addShutdownHook(ShutdownHookManager.java:304)
at org.apache.hadoop.util.StringUtils.startupShutdownMessage(StringUtils.java:749)
at org.apache.hadoop.util.StringUtils.startupShutdownMessage(StringUtils.java:733)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1782)
2022-11-04 03:40:58,951 ERROR namenode.NameNode: Failed to start namenode.
java.lang.RuntimeException: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </property>; expected </description>.
at [row,col,system-id]: [24,10,"file:/app/hadoop3.2/etc/hadoop/core-site.xml"]
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3040)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2984)
at org.apache.hadoop.conf.Configuration.loadProps(Configuration.java:2864)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2846)
at org.apache.hadoop.conf.Configuration.get(Configuration.java:1200)
at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1812)
at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1789)
at org.apache.hadoop.util.ShutdownHookManager.getShutdownTimeout(ShutdownHookManager.java:183)
at org.apache.hadoop.util.ShutdownHookManager$HookEntry.<init>(ShutdownHookManager.java:207)
at org.apache.hadoop.util.ShutdownHookManager.addShutdownHook(ShutdownHookManager.java:304)
at org.apache.hadoop.util.StringUtils.startupShutdownMessage(StringUtils.java:749)
at org.apache.hadoop.util.StringUtils.startupShutdownMessage(StringUtils.java:733)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1782)
Caused by: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </property>; expected </description>.
at [row,col,system-id]: [24,10,"file:/app/hadoop3.2/etc/hadoop/core-site.xml"]
at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:621)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:491)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:475)
at com.ctc.wstx.sr.BasicStreamReader.reportWrongEndElem(BasicStreamReader.java:3365)
at com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3292)
at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2911)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1123)
at org.apache.hadoop.conf.Configuration$Parser.parseNext(Configuration.java:3336)
at org.apache.hadoop.conf.Configuration$Parser.parse(Configuration.java:3130)
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3023)
... 12 more
2022-11-04 03:40:58,959 INFO util.ExitUtil: Exiting with status 1: java.lang.RuntimeException: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </property>; expected </description>.
at [row,col,system-id]: [24,10,"file:/app/hadoop3.2/etc/hadoop/core-site.xml"]
2022-11-04 03:40:58,983 ERROR conf.Configuration: error parsing conf core-site.xml
com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </property>; expected </description>.
at [row,col,system-id]: [24,10,"file:/app/hadoop3.2/etc/hadoop/core-site.xml"]
at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:621)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:491)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:475)
at com.ctc.wstx.sr.BasicStreamReader.reportWrongEndElem(BasicStreamReader.java:3365)
at com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3292)
at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2911)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1123)
at org.apache.hadoop.conf.Configuration$Parser.parseNext(Configuration.java:3336)
at org.apache.hadoop.conf.Configuration$Parser.parse(Configuration.java:3130)
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3023)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2984)
at org.apache.hadoop.conf.Configuration.loadProps(Configuration.java:2864)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2846)
at org.apache.hadoop.conf.Configuration.get(Configuration.java:1200)
at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1812)
at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1789)
at org.apache.hadoop.util.ShutdownHookManager.getShutdownTimeout(ShutdownHookManager.java:183)
at org.apache.hadoop.util.ShutdownHookManager.shutdownExecutor(ShutdownHookManager.java:145)
at org.apache.hadoop.util.ShutdownHookManager.access$300(ShutdownHookManager.java:65)
at org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:102)
Exception in thread "Thread-1" java.lang.RuntimeException: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </property>; expected </description>.
at [row,col,system-id]: [24,10,"file:/app/hadoop3.2/etc/hadoop/core-site.xml"]
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3040)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2984)
at org.apache.hadoop.conf.Configuration.loadProps(Configuration.java:2864)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2846)
at org.apache.hadoop.conf.Configuration.get(Configuration.java:1200)
at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1812)
at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1789)
at org.apache.hadoop.util.ShutdownHookManager.getShutdownTimeout(ShutdownHookManager.java:183)
at org.apache.hadoop.util.ShutdownHookManager.shutdownExecutor(ShutdownHookManager.java:145)
at org.apache.hadoop.util.ShutdownHookManager.access$300(ShutdownHookManager.java:65)
at org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:102)
Caused by: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </property>; expected </description>.
at [row,col,system-id]: [24,10,"file:/app/hadoop3.2/etc/hadoop/core-site.xml"]
at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:621)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:491)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:475)
at com.ctc.wstx.sr.BasicStreamReader.reportWrongEndElem(BasicStreamReader.java:3365)
at com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3292)
at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2911)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1123)
at org.apache.hadoop.conf.Configuration$Parser.parseNext(Configuration.java:3336)
at org.apache.hadoop.conf.Configuration$Parser.parse(Configuration.java:3130)
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3023)
... 10 more
[root@hadoop1 hadoop]#
经过详细查看出错原因很简单,格式化失败的原因我用红色备注的位置会有错误原因
我的是在core-site.xml文件标签没有闭合修改后格式化成功
重启hadoop出错
重启失败是因为格式化不成功
WARNING: HADOOP_SECURE_DN_USER has been replaced by HDFS_DATANODE_SECURE_USER. Using value of HADOOP_SECURE_DN_USER.
Starting namenodes on [hadoop1]
Last login: Fri Nov 4 03:02:39 EDT 2022 on pts/1
hadoop1: ERROR: Cannot set priority of namenode process 58194
Starting datanodes
Last login: Fri Nov 4 03:17:21 EDT 2022 on pts/1
localhost: ERROR: Cannot set priority of datanode process 58335
2022-11-04 03:17:37,788 ERROR conf.Configuration: error parsing conf core-site.xml
com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </property>; expected </description>.
at [row,col,system-id]: [24,10,"file:/app/hadoop3.2/etc/hadoop/core-site.xml"]
at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:621)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:491)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:475)
at com.ctc.wstx.sr.BasicStreamReader.reportWrongEndElem(BasicStreamReader.java:3365)
at com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3292)
at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2911)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1123)
at org.apache.hadoop.conf.Configuration$Parser.parseNext(Configuration.java:3336)
at org.apache.hadoop.conf.Configuration$Parser.parse(Configuration.java:3130)
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3023)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2984)
at org.apache.hadoop.conf.Configuration.loadProps(Configuration.java:2864)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2846)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:1366)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:1338)
at org.apache.hadoop.conf.Configuration.setBoolean(Configuration.java:1679)
at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:339)
at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:572)
at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:174)
at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:156)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
at org.apache.hadoop.hdfs.tools.GetConf.main(GetConf.java:361)
Exception in thread "main" java.lang.RuntimeException: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </property>; expected </description>.
at [row,col,system-id]: [24,10,"file:/app/hadoop3.2/etc/hadoop/core-site.xml"]
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3040)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2984)
at org.apache.hadoop.conf.Configuration.loadProps(Configuration.java:2864)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2846)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:1366)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:1338)
at org.apache.hadoop.conf.Configuration.setBoolean(Configuration.java:1679)
at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:339)
at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:572)
at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:174)
at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:156)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
at org.apache.hadoop.hdfs.tools.GetConf.main(GetConf.java:361)
Caused by: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </property>; expected </description>.
at [row,col,system-id]: [24,10,"file:/app/hadoop3.2/etc/hadoop/core-site.xml"]
at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:621)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:491)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:475)
at com.ctc.wstx.sr.BasicStreamReader.reportWrongEndElem(BasicStreamReader.java:3365)
at com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3292)
at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2911)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1123)
at org.apache.hadoop.conf.Configuration$Parser.parseNext(Configuration.java:3336)
at org.apache.hadoop.conf.Configuration$Parser.parse(Configuration.java:3130)
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3023)
... 13 more
Starting resourcemanagers on []
Last login: Fri Nov 4 03:17:33 EDT 2022 on pts/1
localhost: ERROR: Cannot set priority of resourcemanager process 58730
Starting nodemanagers
Last login: Fri Nov 4 03:17:38 EDT 2022 on pts/1
localhost: ERROR: Cannot set priority of nodemanager process 58870
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。