启动Hbase时:
localhost: starting zookeeper, logging to /usr/local/hbase/bin/../logs/hbase-hduser_-zookeeper-jie-ubantu.out
starting master, logging to /usr/local/hbase/logs/hbase-hduser_-master-jie-ubantu.out
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hbase/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Could not start ZK at requested port of 2181. ZK was started at port: 2182. Aborting as clients (e.g. shell) will not be able to find this ZK quorum.
starting regionserver, logging to /usr/local/hbase/logs/hbase-hduser_-1-regionserver-jie-ubantu.out
master日志报错:
jobclient-2.7.1.jar:/usr/local/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.7.1-tests.jar:/usr/local/hadoop/contrib/capacity-scheduler/*.jar
2016-12-11 18:31:18,008 INFO [main] server.ZooKeeperServer: Server environment:java.library.path=/usr/local/hadoop/lib/native
2016-12-11 18:31:18,008 INFO [main] server.ZooKeeperServer: Server environment:java.io.tmpdir=/tmp
2016-12-11 18:31:18,008 INFO [main] server.ZooKeeperServer: Server environment:java.compiler=<NA>
2016-12-11 18:31:18,008 INFO [main] server.ZooKeeperServer: Server environment:os.name=Linux
2016-12-11 18:31:18,008 INFO [main] server.ZooKeeperServer: Server environment:os.arch=amd64
2016-12-11 18:31:18,008 INFO [main] server.ZooKeeperServer: Server environment:os.version=4.4.0-53-generic
2016-12-11 18:31:18,008 INFO [main] server.ZooKeeperServer: Server environment:user.name=hduser_
2016-12-11 18:31:18,008 INFO [main] server.ZooKeeperServer: Server environment:user.home=/home/hduser_
2016-12-11 18:31:18,008 INFO [main] server.ZooKeeperServer: Server environment:user.dir=/usr/local/hbase/bin
2016-12-11 18:31:18,017 INFO [main] server.ZooKeeperServer: Created server with tickTime 2000 minSessionTimeout 4000 maxSessionTimeout 40000 datadir /tmp/hbase-hduser_/zookeeper/zookeeper_0/version-2 snapdir /tmp/hbase-hduser_/zookeeper/zookeeper_0/version-2
2016-12-11 18:31:18,027 INFO [main] server.NIOServerCnxnFactory: binding to port 0.0.0.0/0.0.0.0:2181
2016-12-11 18:31:18,066 INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181] server.NIOServerCnxnFactory: Accepted socket connection from /127.0.0.1:37726
2016-12-11 18:31:18,068 INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181] server.NIOServerCnxn: Processing stat command from /127.0.0.1:37726
2016-12-11 18:31:18,070 INFO [Thread-2] server.NIOServerCnxn: Stat command output
2016-12-11 18:31:18,070 INFO [Thread-2] server.NIOServerCnxn: Closed socket connection for client /127.0.0.1:37726 (no session established for client)
2016-12-11 18:31:18,070 INFO [main] zookeeper.MiniZooKeeperCluster: Started MiniZooKeeperCluster and ran successful 'stat' on client port=2181
2016-12-11 18:31:18,070 INFO [main] master.HMasterCommandLine: Starting up instance of localHBaseCluster; master=1, regionserversCount=1
2016-12-11 18:31:18,398 INFO [main] regionserver.RSRpcServices: master/ppc125.cc.jl.cn/202.98.24.125:0 server-side HConnection retries=350
2016-12-11 18:31:18,508 INFO [main] ipc.SimpleRpcScheduler: Using deadline as user call queue, count=3
2016-12-11 18:31:18,513 ERROR [main] master.HMasterCommandLine: Master exiting
java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMasterCannot assign requested address
at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:143)
at org.apache.hadoop.hbase.LocalHBaseCluster.addMaster(LocalHBaseCluster.java:220)
at org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:155)
at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:223)
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 ppc125.cc.jl.cn/202.98.24.125:0 : Cannot assign requested address. To switch ports use the 'hbase.master.port' configuration property.
at org.apache.hadoop.hbase.regionserver.RSRpcServices.<init>(RSRpcServices.java:934)
at org.apache.hadoop.hbase.master.MasterRpcServices.<init>(MasterRpcServices.java:230)
at org.apache.hadoop.hbase.master.HMaster.createRpcServices(HMaster.java:532)
at org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:534)
at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:379)
at org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMaster.<init>(HMasterCommandLine.java:313)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:139)
... 7 more
Caused by: java.net.BindException: Cannot assign requested address
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:444)
at sun.nio.ch.Net.bind(Net.java:436)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.apache.hadoop.hbase.ipc.RpcServer.bind(RpcServer.java:2581)
at org.apache.hadoop.hbase.ipc.RpcServer$Listener.<init>(RpcServer.java:575)
at org.apache.hadoop.hbase.ipc.RpcServer.<init>(RpcServer.java:2027)
at org.apache.hadoop.hbase.regionserver.RSRpcServices.<init>(RSRpcServices.java:927)
... 17 more
2016年 12月 11日 星期日 18:31:35 CST Stopping hbase (via master)
Hregionserver log信息:
2016年 12月 11日 星期日 18:31:18 CST Starting regionserver on jie-ubantu
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 31428
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 31428
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
2016-12-11 18:31:18,718 INFO [main] util.VersionInfo: HBase 1.2.2
2016-12-11 18:31:18,719 INFO [main] util.VersionInfo: Source code repository git://asf-dev/home/busbey/projects/hbase revision=3f671c1ead70d249ea4598f1bbcc5151322b3a13
2016-12-11 18:31:18,719 INFO [main] util.VersionInfo: Compiled by busbey on Fri Jul 1 08:28:55 CDT 2016
2016-12-11 18:31:18,719 INFO [main] util.VersionInfo: From source with checksum 7ac43c3d2f62f134b2a6aa1a05ad66ac
2016-12-11 18:31:19,034 WARN [main] regionserver.HRegionServerCommandLine: Not starting a distinct region server because hbase.cluster.distributed is false
zookeeper日志信息:
2016-12-11 18:31:31,869 INFO [main] server.ZooKeeperServer: Server environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
2016-12-11 18:31:31,869 INFO [main] server.ZooKeeperServer: Server environment:java.io.tmpdir=/tmp
2016-12-11 18:31:31,869 INFO [main] server.ZooKeeperServer: Server environment:java.compiler=<NA>
2016-12-11 18:31:31,870 INFO [main] server.ZooKeeperServer: Server environment:os.name=Linux
2016-12-11 18:31:31,870 INFO [main] server.ZooKeeperServer: Server environment:os.arch=amd64
2016-12-11 18:31:31,870 INFO [main] server.ZooKeeperServer: Server environment:os.version=4.4.0-53-generic
2016-12-11 18:31:31,870 INFO [main] server.ZooKeeperServer: Server environment:user.name=hduser_
2016-12-11 18:31:31,870 INFO [main] server.ZooKeeperServer: Server environment:user.home=/home/hduser_
2016-12-11 18:31:31,870 INFO [main] server.ZooKeeperServer: Server environment:user.dir=/usr/local/hbase
2016-12-11 18:31:31,884 INFO [main] server.ZooKeeperServer: tickTime set to 3000
2016-12-11 18:31:31,885 INFO [main] server.ZooKeeperServer: minSessionTimeout set to -1
2016-12-11 18:31:31,885 INFO [main] server.ZooKeeperServer: maxSessionTimeout set to 90000
2016-12-11 18:31:31,917 INFO [main] server.NIOServerCnxnFactory: binding to port 0.0.0.0/0.0.0.0:2181
2016-12-11 18:31:36,955 INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181] server.NIOServerCnxnFactory: Accepted socket connection from /127.0.0.1:37736
2016-12-11 18:31:36,960 INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181] server.ZooKeeperServer: Client attempting to establish new session at /127.0.0.1:37736
2016-12-11 18:31:36,961 INFO [SyncThread:0] persistence.FileTxnLog: Creating new log file: log.5
2016-12-11 18:31:37,008 INFO [SyncThread:0] server.ZooKeeperServer: Established session 0x158ed70076b0000 with negotiated timeout 90000 for client /127.0.0.1:37736
2016-12-11 18:31:37,036 INFO [ProcessThread(sid:0 cport:-1):] server.PrepRequestProcessor: Processed session termination for sessionid: 0x158ed70076b0000
2016-12-11 18:31:37,055 INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181] server.NIOServerCnxn: Closed socket connection for client /127.0.0.1:37736 which had sessionid 0x158ed70076b0000
2016年 12月 11日 星期日 18:31:56 CST Terminating zookeeper
Hbase-site.xml配置信息:
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:54310/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>ture</value>
</property>
</configuration>
在habse-env.sh配置:
export HBASE_MANAGES_ZK=true
查看jps后Hmaster和hregionserver没有启动,这是怎么回事??
请各路高手赐教!!!
|