本帖最后由 星夜蓝宇 于 2017-4-1 15:31 编辑
新人求教
hadoop2.6.0+zookeeper3.4.6+Hbase1.0.0
配置好后,终端输入
start-dfs.sh
zkServer.sh start
start-hbase.sh
然后jps
HMaster、HRegionServer存在
再过一会儿,再次jps,消失
配置
hbase-env.sh
export JAVA_HOME=/usr/java/jdk1.8.0
export HBASE_MANAGES_ZK=false
hbase-site.xml
<property>
<name>hbase.rootdir</name>
<value>hdfs://192.168.197.128:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
<description>Property from ZooKeeper's config zoo.cfg. The port at which the clients will connect.
</description>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>192.168.197.128</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/usr/local/zookeeper/data</value>
</property>
<property>
<name>hbase.tmp.dir</name>
<value>/usr/local/hbase/tmp</value>
</property>
日志消息
hbase-hadoop-master-user.shanwb.log
2017-04-01 14:14:23,355 INFO [main] regionserver.RSRpcServices: master//218.205.57.154:16020 server-side HConnection retries=350
2017-04-01 14:14:23,626 INFO [main] ipc.SimpleRpcScheduler: Using deadline as user call queue, count=3
2017-04-01 14:14:23,664 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:1982)
at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:198)
at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:139)
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:1996)
Caused by: java.net.BindException: 无法指定被请求的地址
hbase-hadoop-1-regionserver-user.shanwb.log
2017-04-01 14:14:22,723 INFO [main] regionserver.RSRpcServices: regionserver//218.205.57.154:16201 server-side HConnection retries=350
2017-04-01 14:14:23,228 INFO [main] ipc.SimpleRpcScheduler: Using deadline as user call queue, count=3
2017-04-01 14:14:23,275 ERROR [main] regionserver.HRegionServerCommandLine: Region server exiting
java.lang.RuntimeException: Failed construction of Regionserver: class org.apache.hadoop.hbase.regionserver.HRegionServer
at org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:2487)
at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.start(HRegionServerCommandLine.java:64)
at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.run(HRegionServerCommandLine.java:87)
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.regionserver.HRegionServer.main(HRegionServer.java:2502)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.hadoop.hbase.regionserver.HRegionServer.constructRegionServer(HRegionServer.java:2485)
... 5 more
Caused by: java.net.BindException: Problem binding to /218.205.57.154:16201 : 无法指定被请求的地址
|
|