当前位置:   article > 正文

寻找Hadoop启动Namenode失败原因_hadoop3.1.4启动不了namenode

hadoop3.1.4启动不了namenode

问题产生

hadoop目录下,运行下面语句启动namenode,jps发现namenode启动失败

sbin/hadoop.daemon.sh start namenode
  • 1

问题解决

(1)Hadoop namenode、datanode、secondarynamenode节点的日志文件在Hadoop根目录logs/下。日志命名规则为hadoop-用户名-节点名-域名.log寻找namenode节点的日志,比如我的用户名hadoop,我要找namenode节点,我的域名为hadoop.fang.com。所以我将下面的hadoop-hadoop-namenode-hadoop.fang.com.log复制到我的windows共享文件夹下,来查看日志文件。

[hadoop@hadoop hadoop-2.8.5]$ cd logs/
[hadoop@hadoop logs]$ ls
hadoop-hadoop-datanode-hadoop.fang.com.log
hadoop-hadoop-datanode-hadoop.fang.com.out
hadoop-hadoop-datanode-localhost.localdomain.log
hadoop-hadoop-datanode-localhost.localdomain.out
hadoop-hadoop-datanode-localhost.localdomain.out.1
hadoop-hadoop-datanode-localhost.localdomain.out.2
hadoop-hadoop-datanode-localhost.localdomain.out.3
hadoop-hadoop-datanode-localhost.localdomain.out.4
hadoop-hadoop-datanode-localhost.localdomain.out.5
hadoop-hadoop-namenode-hadoop.fang.com.log
hadoop-hadoop-namenode-hadoop.fang.com.out
hadoop-hadoop-namenode-hadoop.fang.com.out.1
hadoop-hadoop-namenode-hadoop.fang.com.out.2
hadoop-hadoop-namenode-hadoop.fang.com.out.3
hadoop-hadoop-namenode-hadoop.fang.com.out.4
hadoop-hadoop-namenode-hadoop.fang.com.out.5
hadoop-hadoop-namenode-localhost.localdomain.log
hadoop-hadoop-namenode-localhost.localdomain.out
hadoop-hadoop-namenode-localhost.localdomain.out.1
hadoop-hadoop-namenode-localhost.localdomain.out.2
hadoop-hadoop-namenode-localhost.localdomain.out.3
hadoop-hadoop-namenode-localhost.localdomain.out.4
hadoop-hadoop-namenode-localhost.localdomain.out.5
hadoop-hadoop-secondarynamenode-hadoop.fang.com.log
hadoop-hadoop-secondarynamenode-hadoop.fang.com.out
hadoop-hadoop-secondarynamenode-localhost.localdomain.log
hadoop-hadoop-secondarynamenode-localhost.localdomain.out
hadoop-hadoop-secondarynamenode-localhost.localdomain.out.1
hadoop-hadoop-secondarynamenode-localhost.localdomain.out.2
hadoop-hadoop-secondarynamenode-localhost.localdomain.out.3
hadoop-hadoop-secondarynamenode-localhost.localdomain.out.4
hadoop-hadoop-secondarynamenode-localhost.localdomain.out.5
hadoop-hadoop-secondarynode-localhost.localdomain.out
hadoop-root-datanode-localhost.localdomain.log
hadoop-root-datanode-localhost.localdomain.out
hadoop-root-namenode-hadoop.fang.com.log
hadoop-root-namenode-hadoop.fang.com.out
hadoop-root-namenode-localhost.localdomain.log
hadoop-root-namenode-localhost.localdomain.out
hadoop-root-namenode-localhost.localdomain.out.1
hadoop-root-namenode-localhost.localdomain.out.2
hadoop-root-namenode-localhost.localdomain.out.3
hadoop-root-secondarynamenode-localhost.localdomain.log
hadoop-root-secondarynamenode-localhost.localdomain.out
hadoop-root-secondarynamenode-localhost.localdomain.out.1
hadoop-root-secondarynamenode-localhost.localdomain.out.2
SecurityAuth-hadoop.audit
SecurityAuth-root.audit
userlogs
yarn-hadoop-namemanager-localhost.localdomain.out
yarn-hadoop-nodemanager-localhost.localdomain.log
yarn-hadoop-nodemanager-localhost.localdomain.out
yarn-hadoop-nodemanager-localhost.localdomain.out.1
yarn-hadoop-nodemanager-localhost.localdomain.out.2
yarn-hadoop-nodemanager-localhost.localdomain.out.3
yarn-hadoop-nodemanager-localhost.localdomain.out.4
yarn-hadoop-nodemanager-localhost.localdomain.out.5
yarn-hadoop-resourcemanager-localhost.localdomain.log
yarn-hadoop-resourcemanager-localhost.localdomain.out
yarn-hadoop-resourcemanager-localhost.localdomain.out.1
yarn-hadoop-resourcemanager-localhost.localdomain.out.2
yarn-hadoop-resourcemanager-localhost.localdomain.out.3
yarn-hadoop-resourcemanager-localhost.localdomain.out.4
yarn-hadoop-resourcemanager-localhost.localdomain.out.5
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66

(2)使用cp srcFile destFile 命令将日志文件复制到共享文件夹下。然后打开最近一次启动时间的日志文件。如下图。由图中异常原因Does not contain a valid host:port authority: 0.0.0.0.:50070。可知,是配置etc/hadoop/hdfs-site.xml 的dfs.http.address属性出错。多了一个 0.0.0.0. 末尾多了一个点。 配置ip的就两个文件还有一个是etc/hadoop/core-site.xml。问题解决

2018-09-29 08:51:06,439 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: STARTUP_MSG: 
/************************************************************
STARTUP_MSG: Starting NameNode
STARTUP_MSG:   user = hadoop
STARTUP_MSG:   host = hadoop.fang.com/192.168.175.123
STARTUP_MSG:   args = []
STARTUP_MSG:   version = 2.8.5
STARTUP_MSG:   classpath = /opt/modules/hadoop-2.8.5/etc/hadoop:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jersey-server-1.9.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/commons-compress-1.4.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/zookeeper-3.4.6.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/hadoop-auth-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/commons-collections-3.2.2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/xmlenc-0.52.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jsr305-3.0.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/protobuf-java-2.5.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/servlet-api-2.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jaxb-api-2.2.2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/httpclient-4.5.2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/paranamer-2.3.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jsch-0.1.54.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/stax-api-1.0-2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/hadoop-annotations-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jettison-1.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jersey-core-1.9.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/commons-logging-1.1.3.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/slf4j-api-1.7.10.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/curator-framework-2.7.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jetty-util-6.1.26.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/junit-4.11.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/hamcrest-core-1.3.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/avro-1.7.4.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/log4j-1.2.17.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/asm-3.2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jersey-json-1.9.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/nimbus-jose-jwt-4.41.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jackson-jaxrs-1.9.13.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/mockito-all-1.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/apacheds-kerberos-codec-2.0.0-M15.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/commons-digester-1.8.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/htrace-core4-4.0.1-incubating.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/netty-3.6.2.Final.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/commons-configuration-1.6.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jcip-annotations-1.0-1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/api-asn1-api-1.0.0-M20.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/xz-1.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/apacheds-i18n-2.0.0-M15.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/api-util-1.0.0-M20.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jackson-xc-1.9.13.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jetty-sslengine-6.1.26.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/commons-beanutils-core-1.8.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/commons-cli-1.2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/activation-1.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/curator-client-2.7.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jackson-mapper-asl-1.9.13.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/commons-lang-2.6.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jackson-core-asl-1.9.13.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jets3t-0.9.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/commons-io-2.4.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/commons-codec-1.4.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jetty-6.1.26.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/commons-math3-3.1.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/commons-net-3.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/commons-beanutils-1.7.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/guava-11.0.2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/json-smart-1.3.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jsp-api-2.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/gson-2.2.4.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/httpcore-4.4.4.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/snappy-java-1.0.4.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/java-xmlbuilder-0.4.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/jaxb-impl-2.2.3-1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/lib/curator-recipes-2.7.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/hadoop-common-2.8.5-tests.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/hadoop-common-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/common/hadoop-nfs-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/jersey-server-1.9.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/leveldbjni-all-1.8.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/xmlenc-0.52.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/jsr305-3.0.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/protobuf-java-2.5.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/servlet-api-2.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/okhttp-2.4.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/xml-apis-1.3.04.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/hadoop-hdfs-client-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/jersey-core-1.9.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/commons-logging-1.1.3.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/commons-daemon-1.0.13.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/jetty-util-6.1.26.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/netty-all-4.0.23.Final.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/log4j-1.2.17.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/asm-3.2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/htrace-core4-4.0.1-incubating.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/netty-3.6.2.Final.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/xercesImpl-2.9.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/commons-cli-1.2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/jackson-mapper-asl-1.9.13.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/commons-lang-2.6.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/jackson-core-asl-1.9.13.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/commons-io-2.4.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/commons-codec-1.4.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/jetty-6.1.26.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/guava-11.0.2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/lib/okio-1.4.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/hadoop-hdfs-native-client-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/hadoop-hdfs-client-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/hadoop-hdfs-native-client-2.8.5-tests.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/hadoop-hdfs-2.8.5-tests.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/hadoop-hdfs-nfs-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/hadoop-hdfs-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/hdfs/hadoop-hdfs-client-2.8.5-tests.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/jersey-server-1.9.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/commons-compress-1.4.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/zookeeper-3.4.6.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/java-util-1.9.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/leveldbjni-all-1.8.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/commons-collections-3.2.2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/jsr305-3.0.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/protobuf-java-2.5.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/servlet-api-2.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/jaxb-api-2.2.2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/guice-servlet-3.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/stax-api-1.0-2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/jettison-1.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/jersey-core-1.9.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/fst-2.50.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/commons-logging-1.1.3.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/javax.inject-1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/commons-math-2.2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/jetty-util-6.1.26.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/log4j-1.2.17.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/asm-3.2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/zookeeper-3.4.6-tests.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/jersey-json-1.9.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/jackson-jaxrs-1.9.13.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/netty-3.6.2.Final.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/xz-1.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/jackson-xc-1.9.13.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/commons-cli-1.2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/activation-1.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/aopalliance-1.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/javassist-3.18.1-GA.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/jersey-guice-1.9.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/jersey-client-1.9.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/curator-client-2.7.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/jackson-mapper-asl-1.9.13.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/commons-lang-2.6.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/jackson-core-asl-1.9.13.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/commons-io-2.4.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/guice-3.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/commons-codec-1.4.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/jetty-6.1.26.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/guava-11.0.2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/curator-test-2.7.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/json-io-2.5.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/lib/jaxb-impl-2.2.3-1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/hadoop-yarn-server-tests-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/hadoop-yarn-server-applicationhistoryservice-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/hadoop-yarn-registry-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/hadoop-yarn-common-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/hadoop-yarn-client-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/hadoop-yarn-server-web-proxy-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/hadoop-yarn-server-common-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/hadoop-yarn-server-resourcemanager-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/hadoop-yarn-server-timeline-pluginstorage-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/hadoop-yarn-server-nodemanager-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/hadoop-yarn-api-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/yarn/hadoop-yarn-server-sharedcachemanager-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/jersey-server-1.9.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/commons-compress-1.4.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/leveldbjni-all-1.8.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/protobuf-java-2.5.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/guice-servlet-3.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/paranamer-2.3.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/hadoop-annotations-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/jersey-core-1.9.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/javax.inject-1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/junit-4.11.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/hamcrest-core-1.3.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/avro-1.7.4.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/log4j-1.2.17.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/asm-3.2.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/netty-3.6.2.Final.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/xz-1.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/aopalliance-1.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/jersey-guice-1.9.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/jackson-mapper-asl-1.9.13.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/jackson-core-asl-1.9.13.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/commons-io-2.4.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/guice-3.0.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/lib/snappy-java-1.0.4.1.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/hadoop-mapreduce-client-common-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/hadoop-mapreduce-client-shuffle-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/hadoop-mapreduce-client-app-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.8.5.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.8.5-tests.jar:/opt/modules/hadoop-2.8.5/share/hadoop/mapreduce/hadoop-mapreduce-client-hs-plugins-2.8.5.jar:/opt/modules/hadoop-2.8.5/contrib/capacity-scheduler/*.jar:/opt/modules/hadoop-2.8.5/contrib/capacity-scheduler/*.jar:/opt/modules/hadoop-2.8.5/contrib/capacity-scheduler/*.jar
STARTUP_MSG:   build = https://git-wip-us.apache.org/repos/asf/hadoop.git -r 0b8464d75227fcee2c6e7f2410377b3d53d3d5f8; compiled by 'jdu' on 2018-09-10T03:32Z
STARTUP_MSG:   java = 10.0.2
************************************************************/
2018-09-29 08:51:06,446 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: registered UNIX signal handlers for [TERM, HUP, INT]
2018-09-29 08:51:06,484 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: createNameNode []
2018-09-29 08:51:07,047 INFO org.apache.hadoop.metrics2.impl.MetricsConfig: loaded properties from hadoop-metrics2.properties
2018-09-29 08:51:07,272 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Scheduled Metric snapshot period at 10 second(s).
2018-09-29 08:51:07,273 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: NameNode metrics system started
2018-09-29 08:51:07,296 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: fs.defaultFS is hdfs://hadoop.fang.com:8020
2018-09-29 08:51:07,298 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: Clients are to use hadoop.fang.com:8020 to access this namenode/service.
2018-09-29 08:51:07,797 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: Failed to start namenode.
java.lang.IllegalArgumentException: Does not contain a valid host:port authority: 0.0.0.0.:50070
	at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:213)
	at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:164)
	at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:153)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.getHttpAddress(NameNode.java:630)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.getHttpServerAddress(NameNode.java:602)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.getHttpServerBindAddress(NameNode.java:616)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:841)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:693)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:906)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:885)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1626)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1694)
2018-09-29 08:51:07,799 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1
2018-09-29 08:51:07,823 INFO org.apache.hadoop.util.JvmPauseMonitor: Starting JVM pause monitor
2018-09-29 08:51:07,825 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at hadoop.fang.com/192.168.175.123
************************************************************/

#hdfs-site.xml文件
<configuration>
        <property>
                <name>dfs.replication</name>
                <value>1</value>
        </property>
        <property>
                <name>dfs.http.address</name>
                <value>0.0.0.0:50070</value>
        </property>
</configuration>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/844395
推荐阅读
相关标签
  

闽ICP备14008679号