hbase分布式部署启动时异常
hadoop为2.6.4,zookeeper为3.4.8,hbase为1.2.2
启动异常信息如下
2016-08-11 19:37:07,059 ERROR [main] master.HMasterCommandLine: Master exiting
java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster.at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:2422)
at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:232)
at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:138)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2432)
Caused by: java.io.IOException: Problem binding to /124.232.132.94:15999 : 无法指定被请求的地址. To switch ports use the 'hbase.master.port' configuration property.
124.232.132.94不是我的IP,这个可能是电信网关的IP,反正不是我内网的IP,也不是我的公网地址…… 15999端口是我配置的 hbase.master.port
这是hbase-site.xml的配置信息
<configuration>
<property>
<name>hbase.master</name>
<value>hadoop01</value>
</property>
<property>
<name>hbase.master.port</name>
<value>15999</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://hadoop01:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>hadoop01,hadoop02,hadoop03</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/var/data/zookeeper</value>
</property>
</configuration>
zookeeper是默认2181端口,可用,hdfs也可用
三台虚拟机,机器名是hadoop01,hadoop02,hadoop03
有配置hosts文件:
192.168.1.133 hadoop01
192.168.1.134 hadoop02
192.168.1.135 hadoop03
关闭了Ip v6,有配置/etc/sysconfig/network:
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=hadoop01
regionservers文件配置了:
hadoop02
hadoop03
启动的异常日志说明15999的端口配置是有效的,同时regionserver也有启动,但是有同样的异常,binding了上面那个错误的ip地址。
有大神指导如何解决吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
有确认端口冲突,尝试了各种端口。 HB启动前,启动中,启动后,都有检查端口打开状态,并没有冲突。
看看15999端口是不是被其他应用程序占用了?你把ZK,HB,HD都配置在同一台机子上,要确保端口都没有冲突。
你用hostname -f就会看到那个名字了。这个叫FQDN。解决的办法就是你自己写/etc/hosts和hostname,把自己的名字和解析都指向hostname
[root@hadoop01 bin]# hostname -f hadoop01 [root@hadoop01 bin]# hostname hadoop01.localdomain [root@hadoop01 bin]# 吐血两升了,是不是反了?CentOS7
问题解决了!还是睡一觉起来头脑清晰一些。
把启动日志一行一行的看了一遍:
2016-08-12 09:18:25,538 INFO [main] util.ServerCommandLine: env:PATH=/usr/local/hadoop-2.6.4/bin:/usr/local/hadoop-2.6.4/sbin:/usr/local/zookeeper-3.4.8/bin:/usr/scala/bin:/usr/local/spark-1.6.2-bin-hadoop2.6/bin:/usr/java/jdk1.8.0_101/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
2016-08-12 09:18:25,538 INFO [main] util.ServerCommandLine: env:HISTCONTROL=ignoredups
2016-08-12 09:18:25,538 INFO [main] util.ServerCommandLine: env:HBASE_REGIONSERVER_OPTS= -XX:PermSize=128m -XX:MaxPermSize=128m
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:MAIL=/var/spool/mail/root
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:LD_LIBRARY_PATH=:/usr/local/hadoop-2.6.4/lib/native
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:LOGNAME=hadoop
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:HBASE_REST_OPTS=
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:PWD=/usr/local/hbase-1.2.2/bin
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:HBASE_ROOT_LOGGER=INFO,RFA
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:LESSOPEN=||/usr/bin/lesspipe.sh %s
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:SHELL=/bin/bash
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:SELINUX_USE_CURRENT_RANGE=
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:HBASE_ENV_INIT=true
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:HBASE_MASTER_OPTS= -XX:PermSize=128m -XX:MaxPermSize=128m
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:HBASE_MANAGES_ZK=false
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:HADOOP_HOME=/usr/local/hadoop-2.6.4
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:HBASE_NICENESS=0
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:HBASE_OPTS=-XX:+UseConcMarkSweepGC -XX:PermSize=128m -XX:MaxPermSize=128m -Dhbase.log.dir=/usr/local/hbase-1.2.2/logs -Dhbase.log.file=hbase-hadoop-master-hadoop01.localdomain.log -Dhbase.home.dir=/usr/local/hbase-1.2.2 -Dhbase.id.str=hadoop -Dhbase.root.logger=INFO,RFA -Djava.library.path=/usr/local/hadoop-2.6.4/lib/native -Dhbase.security.logger=INFO,RFAS
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:HBASE_START_FILE=/tmp/hbase-hadoop-master.autorestart
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:HBASE_SECURITY_LOGGER=INFO,RFAS
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:SHLVL=9
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:ZOOKEEPER_HOME=/usr/local/zookeeper-3.4.8
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:HBASE_LOGFILE=hbase-hadoop-master-hadoop01.localdomain.log
2016-08-12 09:18:25,539 INFO [main] util.ServerCommandLine: env:HISTSIZE=1000
2016-08-12 09:18:25,547 INFO [main] util.ServerCommandLine: env:JAVA_HOME=/usr/java/jdk1.8.0_101
2016-08-12 09:18:25,548 INFO [main] util.ServerCommandLine: env:TERM=xterm-256color
2016-08-12 09:18:25,548 INFO [main] util.ServerCommandLine: env:XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
2016-08-12 09:18:25,548 INFO [main] util.ServerCommandLine: env:LANG=zh_CN.UTF-8
2016-08-12 09:18:25,548 INFO [main] util.ServerCommandLine: env:XDG_SESSION_ID=1
2016-08-12 09:18:25,548 INFO [main] util.ServerCommandLine: env:SELINUX_LEVEL_REQUESTED=
2016-08-12 09:18:25,548 INFO [main] util.ServerCommandLine: env:SELINUX_ROLE_REQUESTED=
2016-08-12 09:18:25,548 INFO [main] util.ServerCommandLine: env:SPARK_HOME=/usr/local/spark-1.6.2-bin-hadoop2.6
2016-08-12 09:18:25,548 INFO [main] util.ServerCommandLine: env:SCALA_HOME=/usr/scala
2016-08-12 09:18:25,548 INFO [main] util.ServerCommandLine: env:HBASE_CLASSPATH=/usr/local/hadoop-2.6.4/etc/hadoop
2016-08-12 09:18:25,548 INFO [main] util.ServerCommandLine: env:HBASE_IDENT_STRING=hadoop
2016-08-12 09:18:25,548 INFO [main] util.ServerCommandLine: env:HBASE_ZNODE_FILE=/tmp/hbase-hadoop-master.znode
2016-08-12 09:18:25,548 INFO [main] util.ServerCommandLine: env:SSH_TTY=/dev/pts/0
2016-08-12 09:18:25,548 INFO [main] util.ServerCommandLine: env:SSH_CLIENT=192.168.1.101 61634 22
2016-08-12 09:18:25,548 INFO [main] util.ServerCommandLine: env:HBASE_LOG_PREFIX=hbase-hadoop-master-hadoop01.localdomain
2016-08-12 09:18:25,548 INFO [main] util.ServerCommandLine: env:HBASE_LOG_DIR=/usr/local/hbase-1.2.2/logs
2016-08-12 09:18:25,548 INFO [main] util.ServerCommandLine: env:USER=hadoop
2016-08-12 09:18:25,549 INFO [main] util.ServerCommandLine: env:CLASSPATH=/usr/local/hbase-1.2.2/conf:/usr/java/jdk1.8.0_101/lib/tools.jar:/usr/local/hbase-1.2.2:/usr/local/hbase-1.2.2/lib/activation-1.1.jar:/usr/local/hbase-1.2.2/lib/antisamy-1.5.3.jar:/usr/local/hbase-1.2.2/lib/aopalliance-1.0.jar:/usr/local/hbase-1.2.2/lib/apacheds-i18n-2.0.0-M15.jar:/usr/local/hbase-1.2.2/lib/apacheds-kerberos-codec-2.0.0-M15.jar:/usr/local/hbase-1.2.2/lib/api-asn1-api-1.0.0-M20.jar:/usr/local/hbase-1.2.2/lib/api-util-1.0.0-M20.jar:/usr/local/hbase-1.2.2/lib/asm-3.1.jar:/usr/local/hbase-1.2.2/lib/avro-1.7.4.jar:/usr/local/hbase-1.2.2/lib/batik-css-1.8.jar:/usr/local/hbase-1.2.2/lib/batik-ext-1.8.jar:/usr/local/hbase-1.2.2/lib/batik-util-1.8.jar:/usr/local/hbase-1.2.2/lib/bsh-core-2.0b4.jar:/usr/local/hbase-1.2.2/lib/commons-beanutils-1.7.0.jar:/usr/local/hbase-1.2.2/lib/commons-beanutils-core-1.8.3.jar:/usr/local/hbase-1.2.2/lib/commons-cli-1.2.jar:/usr/local/hbase-1.2.2/lib/commons-codec-1.9.jar:/usr/local/hbase-1.2.2/lib/commons-collections-3.2.2.jar:/usr/local/hbase-1.2.2/lib/commons-compress-1.4.1.jar:/usr/local/hbase-1.2.2/lib/commons-configuration-1.6.jar:/usr/local/hbase-1.2.2/lib/commons-daemon-1.0.13.jar:/usr/local/hbase-1.2.2/lib/commons-digester-1.8.jar:/usr/local/hbase-1.2.2/lib/commons-el-1.0.jar:/usr/local/hbase-1.2.2/lib/commons-fileupload-1.3.1.jar:/usr/local/hbase-1.2.2/lib/commons-httpclient-3.1.jar:/usr/local/hbase-1.2.2/lib/commons-io-2.4.jar:/usr/local/hbase-1.2.2/lib/commons-lang-2.6.jar:/usr/local/hbase-1.2.2/lib/commons-logging-1.2.jar:/usr/local/hbase-1.2.2/lib/commons-math-2.2.jar:/usr/local/hbase-1.2.2/lib/commons-math3-3.1.1.jar:/usr/local/hbase-1.2.2/lib/commons-net-3.1.jar:/usr/local/hbase-1.2.2/lib/disruptor-3.3.0.jar:/usr/local/hbase-1.2.2/lib/esapi-2.1.0.1.jar:/usr/local/hbase-1.2.2/lib/findbugs-annotations-1.3.9-1.jar:/usr/local/hbase-1.2.2/lib/guava-12.0.1.jar:/usr/local/hbase-1.2.2/lib/guice-3.0.jar:/usr/local/hbase-1.2.2/lib/guice-servlet-3.0.jar:/usr/local/hbase-1.2.2/lib/hadoop-annotations-2.5.1.jar:/usr/local/hbase-1.2.2/lib/hadoop-auth-2.5.1.jar:/usr/local/hbase-1.2.2/lib/hadoop-client-2.5.1.jar:/usr/local/hbase-1.2.2/lib/hadoop-common-2.5.1.jar:/usr/local/hbase-1.2.2/lib/hadoop-hdfs-2.5.1.jar:/usr/local/hbase-1.2.2/lib/hadoop-mapreduce-client-app-2.5.1.jar:/usr/local/hbase-1.2.2/lib/hadoop-mapreduce-client-common-2.5.1.jar:/usr/local/hbase-1.2.2/lib/hadoop-mapreduce-client-core-2.5.1.jar:/usr/local/hbase-1.2.2/lib/hadoop-mapreduce-client-jobclient-2.5.1.jar:/usr/local/hbase-1.2.2/lib/hadoop-mapreduce-client-shuffle-2.5.1.jar:/usr/local/hbase-1.2.2/lib/hadoop-yarn-api-2.5.1.jar:/usr/local/hbase-1.2.2/lib/hadoop-yarn-client-2.5.1.jar:/usr/local/hbase-1.2.2/lib/hadoop-yarn-common-2.5.1.jar:/usr/local/hbase-1.2.2/lib/hadoop-yarn-server-common-2.5.1.jar:/usr/local/hbase-1.2.2/lib/hbase-annotations-1.2.2.jar:/usr/local/hbase-1.2.2/lib/hbase-annotations-1.2.2-tests.jar:/usr/local/hbase-1.2.2/lib/hbase-client-1.2.2.jar:/usr/local/hbase-1.2.2/lib/hbase-common-1.2.2.jar:/usr/local/hbase-1.2.2/lib/hbase-common-1.2.2-tests.jar:/usr/local/hbase-1.2.2/lib/hbase-examples-1.2.2.jar:/usr/local/hbase-1.2.2/lib/hbase-external-blockcache-1.2.2.jar:/usr/local/hbase-1.2.2/lib/hbase-hadoop2-compat-1.2.2.jar:/usr/local/hbase-1.2.2/lib/hbase-hadoop-compat-1.2.2.jar:/usr/local/hbase-1.2.2/lib/hbase-it-1.2.2.jar:/usr/local/hbase-1.2.2/lib/hbase-it-1.2.2-tests.jar:/usr/local/hbase-1.2.2/lib/hbase-prefix-tree-1.2.2.jar:/usr/local/hbase-1.2.2/lib/hbase-procedure-1.2.2.jar:/usr/local/hbase-1.2.2/lib/hbase-protocol-1.2.2.jar:/usr/local/hbase-1.2.2/lib/hbase-resource-bundle-1.2.2.jar:/usr/local/hbase-1.2.2/lib/hbase-rest-1.2.2.jar:/usr/local/hbase-1.2.2/lib/hbase-server-1.2.2.jar:/usr/local/hbase-1.2.2/lib/hbase-server-1.2.2-tests.jar:/usr/local/hbase-1.2.2/lib/hbase-shell-1.2.2.jar:/usr/local/hbase-1.2.2/lib/hbase-thrift-1.2.2.jar:/usr/local/hbase-1.2.2/lib/htrace-core-3.1.0-incubating.jar:/usr/local/hbase-1.2.2/lib/httpclient-4.2.5.jar:/usr/local/hbase-1.2.2/lib/httpcore-4.4.1.jar:/usr/local/hbase-1.2.2/lib/jackson-core-asl-1.9.13.jar:/usr/local/hbase-1.2.2/lib/jackson-jaxrs-1.9.13.jar:/usr/local/hbase-1.2.2/lib/jackson-mapper-asl-1.9.13.jar:/usr/local/hbase-1.2.2/lib/jackson-xc-1.9.13.jar:/usr/local/hbase-1.2.2/lib/jamon-runtime-2.4.1.jar:/usr/local/hbase-1.2.2/lib/jasper-compiler-5.5.23.jar:/usr/local/hbase-1.2.2/lib/jasper-runtime-5.5.23.jar:/usr/local/hbase-1.2.2/lib/javax.inject-1.jar:/usr/local/hbase-1.2.2/lib/java-xmlbuilder-0.4.jar:/usr/local/hbase-1.2.2/lib/jaxb-api-2.2.2.jar:/usr/local/hbase-1.2.2/lib/jaxb-impl-2.2.3-1.jar:/usr/local/hbase-1.2.2/lib/jcodings-1.0.8.jar:/usr/local/hbase-1.2.2/lib/jersey-client-1.9.jar:/usr/local/hbase-1.2.2/lib/jersey-core-1.9.jar:/usr/local/hbase-1.2.2/lib/jersey-guice-1.9.jar:/usr/local/hbase-1.2.2/lib/jersey-json-1.9.jar:/usr/local/hbase-1.2.2/lib/jersey-server-1.9.jar:/usr/local/hbase-1.2.2/lib/jets3t-0.9.0.jar:/usr/local/hbase-1.2.2/lib/jettison-1.3.3.jar:/usr/local/hbase-1.2.2/lib/jetty-6.1.26.jar:/usr/local/hbase-1.2.2/lib/jetty-sslengine-6.1.26.jar:/usr/local/hbase-1.2.2/lib/jetty-util-6.1.26.jar:/usr/local/hbase-1.2.2/lib/joni-2.1.2.jar:/usr/local/hbase-1.2.2/lib/jruby-complete-1.6.8.jar:/usr/local/hbase-1.2.2/lib/jsch-0.1.42.jar:/usr/local/hbase-1.2.2/lib/jsp-2.1-6.1.14.jar:/usr/local/hbase-1.2.2/lib/jsp-api-2.1-6.1.14.jar:/usr/local/hbase-1.2.2/lib/jsr305-1.3.9.jar:/usr/local/hbase-1.2.2/lib/junit-4.12.jar:/usr/local/hbase-1.2.2/lib/leveldbjni-all-1.8.jar:/usr/local/hbase-1.2.2/lib/libthrift-0.9.3.jar:/usr/local/hbase-1.2.2/lib/log4j-1.2.17.jar:/usr/local/hbase-1.2.2/lib/metrics-core-2.2.0.jar:/usr/local/hbase-1.2.2/lib/nekohtml-1.9.16.jar:/usr/local/hbase-1.2.2/lib/netty-all-4.0.23.Final.jar:/usr/local/hbase-1.2.2/lib/paranamer-2.3.jar:/usr/local/hbase-1.2.2/lib/protobuf-java-2.5.0.jar:/usr/local/hbase-1.2.2/lib/servlet-api-2.5-6.1.14.jar:/usr/local/hbase-1.2.2/lib/servlet-api-2.5.jar:/usr/local/hbase-1.2.2/lib/slf4j-api-1.7.7.jar:/usr/local/hbase-1.2.2/lib/slf4j-log4j12-1.7.5.jar:/usr/local/hbase-1.2.2/lib/snappy-java-1.0.4.1.jar:/usr/local/hbase-1.2.2/lib/spymemcached-2.11.6.jar:/usr/local/hbase-1.2.2/lib/xalan-2.7.0.jar:/usr/local/hbase-1.2.2/lib/xml-apis-1.3.03.jar:/usr/local/hbase-1.2.2/lib/xml-apis-ext-1.3.04.jar:/usr/local/hbase-1.2.2/lib/xmlenc-0.52.jar:/usr/local/hbase-1.2.2/lib/xom-1.2.5.jar:/usr/local/hbase-1.2.2/lib/xz-1.0.jar:/usr/local/hbase-1.2.2/lib/zookeeper-3.4.6.jar:/usr/local/hadoop-2.6.4/etc/hadoop:/usr/local/hadoop-2.6.4/share/hadoop/common/lib/*:/usr/local/hadoop-2.6.4/share/hadoop/common/*:/usr/local/hadoop-2.6.4/share/hadoop/hdfs:/usr/local/hadoop-2.6.4/share/hadoop/hdfs/lib/*:/usr/local/hadoop-2.6.4/share/hadoop/hdfs/*:/usr/local/hadoop-2.6.4/share/hadoop/yarn/lib/*:/usr/local/hadoop-2.6.4/share/hadoop/yarn/*:/usr/local/hadoop-2.6.4/share/hadoop/mapreduce/lib/*:/usr/local/hadoop-2.6.4/share/hadoop/mapreduce/*:/usr/local/hadoop-2.6.4/contrib/capacity-scheduler/*.jar:/usr/local/hadoop-2.6.4/etc/hadoop
2016-08-12 09:18:25,549 INFO [main] util.ServerCommandLine: env:SSH_CONNECTION=192.168.1.101 61634 192.168.1.133 22
2016-08-12 09:18:25,549 INFO [main] util.ServerCommandLine: env:HOSTNAME=hadoop01.localdomain
2016-08-12 09:18:25,549 INFO [main] util.ServerCommandLine: env:NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
2016-08-12 09:18:25,549 INFO [main] util.ServerCommandLine: env:XDG_RUNTIME_DIR=/run/user/0
2016-08-12 09:18:25,549 INFO [main] util.ServerCommandLine: env:HBASE_THRIFT_OPTS=
2016-08-12 09:18:25,549 INFO [main] util.ServerCommandLine: env:HBASE_HOME=/usr/local/hbase-1.2.2
2016-08-12 09:18:25,549 INFO [main] util.ServerCommandLine: env:HOME=/home/hadoop
2016-08-12 09:18:25,549 INFO [main] util.ServerCommandLine: env:MALLOC_ARENA_MAX=4
读取的环境参数,HOSTNAME是hadoop01.localdomain,为什么是hadoop01.localdomain不知道。
ping了一下hadoop01.localdomain,ip地址是124.232.132.94
果断修改Host文件:
192.168.1.133 hadoop01 hadoop01.localdomain
192.168.1.134 hadoop02 hadoop02.localdomain
192.168.1.135 hadoop03 hadoop03.localdomain
然后启动成功了。