1. 程式人生 > >zookeeper連線unexpected error, closing socket connection and attempting reconnect錯誤分解決

zookeeper連線unexpected error, closing socket connection and attempting reconnect錯誤分解決

2018-08-29 09:47:47,507  INFO [ZooKeeper.java:438] : Initiating client connection, connectString=47.105.67.156:2181 sessionTimeout=30000 [email protected]
2018-08-29 09:47:47,582  INFO [ClientCnxn.java:966] : Opening socket connection to server ubuntu16/47.105.67.156:12181. Will not attempt to authenticate using SASL (unknown error)
2018-08-29 09:48:08,602  WARN [ClientCnxn.java:1089] : Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect


java.net.ConnectException: Connection timed out: no further information
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
    at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
2018-08-29 09:48:09,730  INFO [ClientCnxn.java:966] : Opening socket connection to server ubuntu16/47.105.67.156:2181. Will not attempt to authenticate using SASL (unknown error)
2018-08-29 09:48:30,736  WARN [ClientCnxn.java:1089] : Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection timed out: no further information
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
    at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
2018-08-29 09:48:31,836  INFO [ClientCnxn.java:966] : Opening socket connection to server ubuntu16/47.105.67.156:2181. Will not attempt to authenticate using SASL (unknown error)
 

 本地服務連線阿里雲上的zookeeper,總是報如上錯誤,顯示連線超時。關閉防火牆後,問題仍然沒有解決!

重新開放了相應的埠,問題得以解決!

 總結:阿里雲伺服器,有兩處控制埠。1.伺服器端防火牆  2.控制檯安全組。開發過程中應該注意。

相關推薦

zookeeper連線unexpected error, closing socket connection and attempting reconnect錯誤解決

2018-08-29 09:47:47,507  INFO [ZooKeeper.java:438] : Initiating client connection, connectString=47.105.67.156:2181 sessionTimeout=30000

Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect

拉分支配專案環境,Tomcat啟動報錯如下:   2018-11-05 16:06:49,837 WARN [org.apache.zookeeper.ClientCnxn] - Session 0x0 for server null, unexpected error, clo

【MongoDB】MongoDb的“not master and slaveok=false”錯誤解決方法 mongo連線從庫出現問題

連結mongodb報錯如下 2016-03-14T16:26:00.912+0800 E QUERY [thread1] Error: listDatabases failed:{ "ok" : 0, "errmsg" : "not master and slaveOk=false", "cod

tomcat 請求出現RFC 7230 and RFC3986的錯誤解決辦法

問題描述 今天在測試介面的是否使用tomcat啟動服務,然後通過get請求去測試介面,頁面返回報的錯誤是400。 tomcat中錯誤如下圖所示: 請求引數為 location=[{"lng":108.871597,"lat":34.194412}] 很明顯,在location的引數

scrapy_Atwisted.web.error.SchemeNotSupported: Unsupported scheme: b''錯誤解決

問題描述: 在middleware中使用ip代理的時候,報錯如下 2019-01-05 21:16:15 [scrapy.core.scraper] ERROR: Error downloading <GET http://httpbin.org/ip> Traceback (m

Java連線oracle的關於oracle.jdbc.driver.OracleDriver的錯誤解決

今天在做JAVA連線資料庫的時候,出現: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver 這個提示的錯誤。仔細看了下,是JDBC的驅動沒有載入到project中。 我的程式碼如下: view

CDH中安裝Hue連線不上資料庫 Unexpected error. Unable to verify database connection 完美解決方案

在安裝CDH時,走到驗證資料庫連線部分時候,Hue總是驗證不過去,報錯為: Unexpected error. Unable to verify database connection。原因大都是因為缺少環境包所致。 我安裝的過程中分別使用過postgresql和mysql,都出現過相

pyspider連線rabbitmq ,結果出現socket.error: [Errno 104] Connection reset by peer 這樣的報錯資訊

linux系統中: pyspider+rabbitmq+mongodb環境下啟動pyspider時出現socket.error: [Errno 104] Connection reset by peer 的錯誤資訊。 首先,分享一下自己總結的做維護或者排除bug 的思路:

zookeeper 入坑二: Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to aut

    前幾段的時候,Zookeeper的安裝是成功的,也啟動成功,但是今天不知道就怎麼了,另外一臺裝突然就一直啟動不起來。在‘#’後面的是註釋:   # 目前所在的位置: [[email protected] bin]$ pwd /h

Mysql監控元件mymon報錯“NewMySQLConnection Error: Building mysql connection failed!: unexpected EOF”問題

mymon是Open-falcon的用來監控Mysql的元件,今天使用起來遇到了一個問題,資料庫明明正確配置,但是啟動的時候總是報“NewMySQLConnection Error: Building mysql connection failed!: unexpected EOF”的錯誤

cloudermanager安裝時database connection出現Unexpected error. Unable to verify database connection(圖文詳解)

     不多說,直接上乾貨! http://www.aboutyun.com/forum.php?mod=viewthread&tid=20455&extra=&page=2 歡迎大家,加入我的微信公眾號:大資料躺過的坑        人工智慧

C# web references 調用出錯 The underlying connection was closed: An unexpected error occurred on a send.

在呼叫web references的位置加上try  catch 後捕捉到 error  message : Unable to read data from the transport connection: An existing connection was forci

PHP錯誤Parse error: syntax error, unexpected end of file in test.php on line 12解決方法

空格 短標簽 後來 成了 出現 提示 分享 也會 出錯 今天在寫PHP程序的時候總是出現這樣的錯誤:Parse error: syntax error, unexpected end of file in *.php on line *,然後我就根據提示,找到那個文件,然後

【Tomcat】Unrecognized Windows Sockets error: 10106: Socket creation failed

.get ces leg lan ror 傳輸協議 local 過程 協議 tomcat8啟動過程中報如下錯誤 30-Nov-2017 22:45:52.892 嚴重 [main] org.apache.catalina.core.StandardServer.awai

There was an unexpected error (type=Not Found, status=404).

local exp 去掉 cati body expect cit there pin Whitelabel Error Page This application has no explicit mapping for /error, so you are seein

ORA-28547:connection to server failed, probable Oracle Net admin error錯誤解決方法

pro div oracle 資料 安裝 err ora-28547 解決 方法 當用navicat連接oralce數據庫時報ORA-28547錯誤時,直接懵逼了,上網查了資料說是navicat自帶的oci.dll文件的版本和服務器端的oralce數據庫的版本不一致造成的。

【Docker】Segmentation Fault or Critical Error encountered. Dumping core and abort

start entos OS logs install bubuko x86 http centos7 前言 CentOS7 安裝Docker後,load鏡像時出現以下錯誤: Segmentation Fault or Critical Error encountered.

An unexpected error prevented the server from fulfilling your request. (HTTP 500)

PE you detail ref lin art err AR lock 轉自 https://blog.csdn.net/zw421152835/article/details/50992732 看日誌 tail -f /var/log/keystone/keys

Kitematic when login show Error:Tunning socket could not be established

zip question login fad ons use ror logs error: https://cn.bing.com/search?q=tunning+socket+could+not+be+established&qs=n&form=QBRE&sp=-1&

ssh連線遠端伺服器:ssh_exchange_identification: read: Connection reset by peer

查閱資料這是伺服器超過使用者最大連線數,雲伺服器後臺遠端連線修改一下自動連線數: ----> -----> 輸入密碼遠端連線之後: 進入usr目錄,然後輸入:  vi /etc/ssh/sshd_config  按i編輯,修改這個引