我是靠谱客的博主 酷酷小天鹅,最近开发中收集的这篇文章主要介绍Zookeeper ValueError: not enough values to unpack (expected 2, got 1),觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
Error:
Exception in thread ServiceRegisterThread:
Traceback (most recent call last):
File "/usr/local/python3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/local/python3.6/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/opt/BeyondPMP.python.services/uphmp/common/apps.py", line 12, in run
jj.start_zk()
File "/opt/BeyondPMP.python.services/uphmp/zk_handle/zk_register.py", line 40, in start_zk
raise start_zk_e
File "/opt/BeyondPMP.python.services/uphmp/zk_handle/zk_register.py", line 34, in start_zk
self._zk = KazooClient(self._hosts, auth_data=ZOOKEEPER_CONFIG["zk_auth_data"], logger=logger)
File "/usr/local/python3.6/lib/python3.6/site-packages/kazoo/client.py", line 308, in __init__
for scheme, auth in self.auth_data:
ValueError: not enough values to unpack (expected 2, got 1)
Solution:
1.如果业务场景zookeeper必须有密码,修改注册zookeeper服务的脚本,里面auth_data 参数应该传zookeeper的注册用户和密码,报错缺少参数,expected 2, got 1
2.delete 这个服务路径 然后 改成无密码的,服务即可注册上。
最后
以上就是酷酷小天鹅为你收集整理的Zookeeper ValueError: not enough values to unpack (expected 2, got 1)的全部内容,希望文章能够帮你解决Zookeeper ValueError: not enough values to unpack (expected 2, got 1)所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复