3
我正在使用TitanDB和存儲後端Hbase通過zookeeper和索引後端進行管理:Elasticsearch 我的問題是hbase連接zookeeper並立即斷開連接,但代碼退出0。與Zookeeper的Hbase連接經常連接和斷開連接,但代碼退出0
================== elasticsearch.yml =====
cluster.name: elasticsearch_graph_dev
script.disable_dynamic: true
node.name: "node_graph_dev"
bootstrap.mlockall: true
network.host: 127.0.0.1
============= ===== hbase-site.xml ========
<configuration>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/zookeeper</value>
</property>
<property>
<name>zookeeper.znode.parent</name>
<value>/hbase-unsecure</value>
</property>
<property>
<name>hbase.manages.zk</name>
<value>true</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
</configuration>
個
============== zoo.cfg ========
enter code here
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/tmp/zookeeper
clientPort=2181
上==============消息控制檯=====
[main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=localhost:2181 sessionTimeout=90000 watcher=hconnection-0x2a097d77, quorum=localhost:2181, baseZNode=/hbase-unsecure
[main] INFO org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Process identifier=hconnection-0x2a097d77 connecting to ZooKeeper ensemble=localhost:2181
[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)
[main-SendThread(localhost:2181)] INFO org.apache.zookeeper.ClientCnxn - Socket connection established to localhost/127.0.0.1:2181, initiating session
[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
[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
[main] INFO org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Process identifier=catalogtracker-on-hconnection-0x2a097d77 connecting to ZooKeeper ensemble=localhost:2181
[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)
[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
[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
[main] INFO org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation - Closing zookeeper sessionid=0x154526f4c3e214d
[main] INFO org.apache.zookeeper.ZooKeeper - Session: 0x154526f4c3e214d closed
[main-EventThread] INFO org.apache.zookeeper.ClientCnxn - EventThread shut down
[main] INFO org.apache.zookeeper.ZooKeeper - Session: 0x154526f4c3e214e closed
[main-EventThread] INFO org.apache.zookeeper.ClientCnxn - EventThread shut down
[main] INFO org.apache.hadoop.hbase.client.HBaseAdmin - Started disable of titan
Titan version = 1.0.0
hbase version = 0.98.12
zookeeper version = 3.4.6
elasticsearch version = 1.5.1
===================================== =================
上面的消息不斷打印很多次,我只想知道它可以打印很多次或只打印一次(然後如何解決它)。
我能夠看到我在elasticsearch gui中創建的索引以及hbase終端+ gui中的表。
感謝
編輯
HBase的日誌:
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
2016-04-28 14:01:41,884 INFO [pool-14-thread-1] master.HMaster: Forcing expire of 172.20.56.111,60020,1461827886746
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
你可以看看hbase日誌或zookeeper日誌裏面找到爲什麼連接關閉嗎? – Whitefret
2016-04-28 14:01:41,884 INFO [pool-14-thread-1] catalog.CatalogTracker:hbase驗證失敗:meta ,, 1 at address = 172.20.56.111,60020,1461827886746,exception = java.net .ConnectException:連接被拒絕 2016-04-28 14:01:41,884信息[pool-14-thread-1] master.HMaster:強制過期172.20.56.111,60020,1461827886746 2016-04-28 14:01: 41,885 INFO [pool-14-thread-1] master.ServerManager:Master在初始化期間不啓用ServerShutdownHandler,延遲到期服務器172.20.56.111,60020,1461827886746 – Mayur
上面的hbase日誌 – Mayur