与zookeeper的hbase连接经常连接和断开连接,但代码以0退出

x33g5p2x  于 2021-06-09  发布在  Hbase
关注(0)|答案(1)|浏览(642)

我正在使用带有存储后端的titandb hbase manage by zookeeper和index backend:elasticsearch我的问题是hbase连接zookeeper并立即断开连接,但代码以0退出。
====================ElasticSearch.yml=====

  1. cluster.name: elasticsearch_graph_dev
  2. script.disable_dynamic: true
  3. node.name: "node_graph_dev"
  4. bootstrap.mlockall: true
  5. network.host: 127.0.0.1

======================hbase-site.xml========

  1. <configuration>
  2. <property>
  3. <name>hbase.zookeeper.property.dataDir</name>
  4. <value>/zookeeper</value>
  5. </property>
  6. <property>
  7. <name>zookeeper.znode.parent</name>
  8. <value>/hbase-unsecure</value>
  9. </property>
  10. <property>
  11. <name>hbase.manages.zk</name>
  12. <value>true</value>
  13. </property>
  14. <property>
  15. <name>hbase.cluster.distributed</name>
  16. <value>true</value>
  17. </property>
  18. </configuration>

================动物园.cfg========

  1. enter code here
  2. tickTime=2000
  3. initLimit=10
  4. syncLimit=5
  5. dataDir=/tmp/zookeeper
  6. clientPort=2181

================控制台上的消息=====

  1. [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=localhost:2181 sessionTimeout=90000 watcher=hconnection-0x2a097d77, quorum=localhost:2181, baseZNode=/hbase-unsecure
  2. [main] INFO org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Process identifier=hconnection-0x2a097d77 connecting to ZooKeeper ensemble=localhost:2181
  3. [main-SendThread(localhost:2181)] INFO org.apache.zookeeper.ClientCnxn - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)
  4. [main-SendThread(localhost:2181)] INFO org.apache.zookeeper.ClientCnxn - Socket connection established to localhost/127.0.0.1:2181, initiating session
  5. [main-SendThread(localhost:2181)] INFO org.apache.zookeeper.ClientCnxn - Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x154526f4c3e214d, negotiated timeout = 40000
  6. [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=localhost:2181 sessionTimeout=90000 watcher=catalogtracker-on-hconnection-0x2a097d77, quorum=localhost:2181, baseZNode=/hbase-unsecure
  7. [main] INFO org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Process identifier=catalogtracker-on-hconnection-0x2a097d77 connecting to ZooKeeper ensemble=localhost:2181
  8. [main-SendThread(localhost:2181)] INFO org.apache.zookeeper.ClientCnxn - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error)
  9. [main-SendThread(localhost:2181)] INFO org.apache.zookeeper.ClientCnxn - Socket connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session
  10. [main-SendThread(localhost:2181)] INFO org.apache.zookeeper.ClientCnxn - Session establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, sessionid = 0x154526f4c3e214e, negotiated timeout = 40000
  11. [main] INFO org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation - Closing zookeeper sessionid=0x154526f4c3e214d
  12. [main] INFO org.apache.zookeeper.ZooKeeper - Session: 0x154526f4c3e214d closed
  13. [main-EventThread] INFO org.apache.zookeeper.ClientCnxn - EventThread shut down
  14. [main] INFO org.apache.zookeeper.ZooKeeper - Session: 0x154526f4c3e214e closed
  15. [main-EventThread] INFO org.apache.zookeeper.ClientCnxn - EventThread shut down
  16. [main] INFO org.apache.hadoop.hbase.client.HBaseAdmin - Started disable of titan
  17. Titan version = 1.0.0
  18. hbase version = 0.98.12
  19. zookeeper version = 3.4.6
  20. elasticsearch version = 1.5.1

======================================================
上面的消息一直在打印很多次,我只想知道它是否可以打印多次或只有一次(然后如何解决它)。
我可以看到我在elasticsearch gui中创建的索引,也可以看到hbase terminal+gui中的表。
谢谢
编辑
hbase日志:

  1. 2016-04-28 14:01:41,884 INFO [pool-14-thread-1] catalog.CatalogTracker: Failed verification of hbase:meta,,1 at address=172.20.56.111,60020,1461827886746, exception=java.net.ConnectException: Connection refused
  2. 2016-04-28 14:01:41,884 INFO [pool-14-thread-1] master.HMaster: Forcing expire of 172.20.56.111,60020,1461827886746
  3. 2016-04-28 14:01:41,885 INFO [pool-14-thread-1] master.ServerManager: Master doesn't enable ServerShutdownHandler during initialization, delay expiring server 172.20.56.111,60020,1461827886746
h79rfbju

h79rfbju1#

如前所述,这些都只是 INFO 信息。只是噪音。如果它们困扰您,您可以使用log4j属性来配置日志级别以减少它们。

  1. log4j.logger.org.apache.zookeeper=WARN
  2. log4j.logger.org.apache.hadoop.hbase.client=WARN
  3. log4j.logger.org.apache.hadoop.hbase.zookeeper=WARN

相关问题