1. 程式人生 > >Zookeeper 錯誤 Will not attempt to authenticate using SASL (unknown error)

Zookeeper 錯誤 Will not attempt to authenticate using SASL (unknown error)

今天在做dubbo實驗的時候,碰到一個問題,卡了我7-8小時,差了很多資料無果,錯誤如下

2016-10-09 02:23:27,292 INFO [org.apache.zookeeper.ZooKeeper] - Initiating client connection, connectString=1.1.1.2:2181 sessionTimeout=60000 [email protected]
2016-10-09 02:23:27,307 INFO [org.I0Itec.zkclient.ZkClient] - Waiting for keeper state SyncConnected
2016-10-09 02:23:32,308 INFO [org.I0Itec.zkclient.ZkEventThread] - Terminate ZkClient event thread.
2016-10-09 02:23:36,665 INFO [org.apache.zookeeper.ClientCnxn] - Opening socket connection to server 1.1.1.2/1.1.1.2:2181. Will not attempt to authenticate using SASL (unknown error)
2016-10-09 02:23:36,667 INFO [org.apache.zookeeper.ClientCnxn] - Socket connection established to 1.1.1.2/1.1.1.2:2181, initiating session
2016-10-09 02:23:36,690 INFO [org.apache.zookeeper.ClientCnxn] - Session establishment complete on server 1.1.1.2/1.1.1.2:2181, sessionid = 0x57a5203af30018, negotiated timeout = 40000
2016-10-09 02:23:36,699 INFO [org.apache.zookeeper.ZooKeeper] - Session: 0x57a5203af30018 closed
2016-10-09 02:23:36,702 INFO [org.apache.zookeeper.ClientCnxn] - EventThread shut down
2016-10-09 02:23:36,703 WARN [org.springframework.context.support.ClassPathXmlApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysUserService' defined in file [D:\linux_shared\myjavaproject\system_interchange\bhz-sys-service\target\classes\bhz\sys\service\SysUserService.class]: Initialization of bean failed; nested exception is org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)




最後發現是嘗試,在我自己程式執行端(也就是java程式跑的所在機器,我自己的膝上型電腦上,加入了zk伺服器的ip和伺服器名對映關係,沒想到竟然解決了,我只能說操蛋啊,查了幾個小時,因為是spring或者是程式配置問題,主要引起我注意的是Will not attempt to authenticate using SASL (unknown error)那句。。。)

1.這裡1.1.1.2是zk的伺服器端IP地址,我在伺服器上也配置了1.1.1.2和伺服器本機的IP地址對映關係,不然也可以出問題

2.在  C:\Windows\System32\drivers\etc\hosts 里加入 1.1.1.2  ubuntu16這句話,問題就解決了。。。

3.補充一下,發現zk伺服器端不配置對映關係似乎也可以用,但是zk客戶端,是一定要配置的

相關推薦

Zookeeper 錯誤 Will not attempt to authenticate using SASL (unknown error)

今天在做dubbo實驗的時候,碰到一個問題,卡了我7-8小時,差了很多資料無果,錯誤如下 2016-10-09 02:23:27,292 INFO [org.apache.zookeeper.ZooKeeper] - Initiating client connectio

全網最詳細的啟動或格式化zkfc時出現java.net.NoRouteToHostException: No route to host ... Will not attempt to authenticate using SASL (unknown error)錯誤的解決辦法(圖文詳解)

手機 TP 關註 fail AS hadoop .net ror cep     不多說,直接上幹貨! 解決辦法:     每臺機器都,先執行,sudo chkconfig ipta

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

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

C#連線Mongo報Unable to authenticate using sasl protocol mechanism SCRAM-SHA-1錯的解決方案

---恢復內容開始--- 最近做一個基於ABP的.net Core的專案,資料庫選了MongoDB,但是返現無法給資料庫設定認證,只要設定了賬號密碼連線就報錯 連線串如下: mongodb://root:[email protected]/Webdev 已經給了root使用者"__syste

JMS之——ActiveMQ時拋出的錯誤Could not connect to broker URL-使用線程池解決高並發連接

tag numbers val 配置 pri net moni edi eat 轉載請註明出處:http://blog.csdn.net/l1028386804/article/details/69046395 解決使用activemq時

錯誤 You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work

Win 7 下python3.6 使用Beautiful Soup  4錯誤 You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work 解

vmware報Device eth0 does not seem to be present, delaying initialization錯誤

device 系統 vmware udev per network ini 關於 scrip 系統環境: CentOS-6.8-X86_64 使用vmware的克隆功能後,使用新克隆的虛擬機會報Device eth0 does not seem to be pres

執行git命令時出現fatal: 'origin' does not appear to be a git repository錯誤

遠程 from pos pull reader could not span style fat 在執行git pull origin master時出現:   fatal: ‘origin‘ does not appear to be a git repository  

mysql 出現Host 'localhost' is not allowed to connect to this MySQL server 錯誤

MySql資料庫:Host 'localhost' is not allowed to connect to this MySQL server 修改mysql的root密碼後,出現Host 'localhost' is not allowed to connect to this MySQL server

MetaException(message:Could not connect to meta store using any of the URIs provided. Most recent failure: org.apache.thrift.transport.TTransportExcep

hive在hive-site.xml中配置hive.metastore.uris屬性,後啟動異常 hive異常 [[email protected] hive-0.13.1-cdh5.3.6]$ bin/hive Logging initialized using configuration

Redis連線錯誤:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to...

今天連線Redis出現了MISCONF Redis is configured to save RDB snapshots, but it is currently not able to...的奇葩錯誤,網上查了一下發現問題是:強制把redis快照關閉了導致不能持久化 這個我也表示黑人問號,昨

VSphere隨筆 - vCenter6.5安裝報錯 “Failed to authenticate with the guest operating system using the supplied“

今天重新安裝VCSA,安裝多次一直卡在80%的畫面不動,顯示正在安裝RPM包,同時log日誌顯示“Failed to authenticate with the guest operating system using the supplied ”,登入控制檯檢視VCSA伺服器進度發現root密碼沒

invalid LOC header 與 Could not publish to the server. java.lang.IndexOutOfBoundsException 錯誤處理

1. 專案eclipse 部署問題 Could not publish to the server. java.lang.IndexOutOfBoundsException 原因: pom.xml 依賴的jar包有錯誤,maven 下載jar時,檔案為下載文章

Attempt to invoke virtual method 'void android.widget.TextView.setText錯誤

整了接近一個小時的錯誤,有時候不能僅僅因為AS的報錯就跟著報錯語句zhao找原因,有時候可能因為隨著一個Activity的增多,導致很多長得相似(比如userName,user_name,tv_userName,tv_user_name),此時你找到的id並不是對應介面所具有的id,也就是說是別的介

The server cannot or will not process the request due to something that is perceived to be a client

HTTP Status 400 – Bad Request Type Status Report Description The server cannot or will not process the request due to something that i

Linux錯誤記錄之 Failed to establish a new connection: [Errno -2] Name or service not known',))

當你在linux下呼叫介面時,遇到如下問題時: 不要緊張 因為這個可能是你的電腦沒連上網導致的 所以,你可以先ping一下,檢測你的電腦是否可以上網: ping qq.com 如果出現這個: ping: qq.com: Name or service not known

Mysql連線錯誤:1130-host ... is not allowed to connect to this MySql server

授權 1.例如,你想myuser使用mypassword從任何主機連線到mysql伺服器的話。 GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; FLUSH&

錯誤1130- Host xxx is not allowed to connect to this mysql server

可能是你的帳號不允許從遠端登陸,只能在localhost。這個時候只要在localhost的那臺電腦,登入MySQL後,更改 “mysql” 資料庫裡的 “user” 表裡的 “host” 項,從”l

解決報錯:錯誤1130- Host xxx is not allowed to connect to this MariaDb server

在雲伺服器上面搭建了MariaDb(MariaDB是MySQL原始碼的一個分支),但是遠端連結不上。  首先,你要確保伺服器安全組3306埠已經開放。  在確保埠開放的情況下,如果出現錯誤程式碼1130- Host xxx is not allowed to connec

8266編譯錯誤 xtensa-lx106-elf/bin/ld: segmentled section `.text' will not fit in region `iram1_0_seg'

一種簡單的解決辦法 Okay, the solution was to copy the libgcc.a file from:esp-open-sdk/ESP8266_NONOS/lib/toesp-open-sdk/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.