hbase error log summarizes

错误1:org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired

2019-03-18 10:21:01,623 [pool-5-thread-1-EventThread] WARN  org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation - This client just lost it's session with ZooKeeper, closing it. It will be recreated next time someone needs it
 org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired
        at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.connectionEvent(ZooKeeperWatcher.java:677)
        at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.process(ZooKeeperWatcher.java:609)
        at org.apache.hadoop.hbase.zookeeper.PendingWatcher.process(PendingWatcher.java:40)
        at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:522)
        at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:498)
2019-03-18 10:21:18,758 [pool-5-thread-1-EventThread] $ HConnectionImplementation the INFO org.apache.hadoop.hbase.client.ConnectionManager - Closing ZooKeeper SessionID = 0x1697f22c8e70014 
 2019 - 03 - 18 is  10 : 21 is : 18 is , 816 [pool- . 5 -thread- . 1 -EventThread] the org.apache the INFO .zookeeper.ClientCnxn - EventThread Shut Down 
 
 analysis: hbase inserted into a large amount of data time, client connection timeout. 
 Possible reasons: 
 ( 1 ), HBase memory heap size is too small, modify hbase-env.sh file, set the heap size larger. EG: Export HBASE_HEAPSIZE = 30720 
 ( 2 ), the memory heap Hadoop set too small, modification hadoop-env.sh, the larger the heap size. EG: Export HBASE_HEAPSIZE = 8192 . The default is 1000m
 ( 3 ), ZK maximum number of connections is too small 
 default value is 300, the number of records in queries and large clusters may cause the communication connection between each other too much thereby denying access. 
<Property> 
<name> hbase.zookeeper.property.maxClientCnxns </ name> 
<value> 15000 </ value> 
</ Property>

 

错误2:Reported time is too far out of sync with master

The INFO [regionserver60020] regionserver.HRegionServer: STOPPED: Unhandled: org.apache.hadoop.hbase.ClockOutOfSyncException: 
Server slave2, 60020 , 1,405,560,498,057 has been Rejected; Time Reported IS TOO FAR OUT . Of Time Sync Master with -difference of 28804194ms> max allowed of 30000ms 
analysis: the error log, obtained slave2 and machine time Mom maste view each time the system, if so, can be synchronized. Another approach is to configure hbase profile: 
solution:
 <Property> 
 <name> hbase.master.maxclockskew </ name> 
 <value> 200000 </ value> 
 <Description> Time -difference of RegionServer from Master </ Description> 
< / property> 
try to synchronize time

 

Guess you like

Origin www.cnblogs.com/yjt1993/p/11164552.html