当前位置:网站首页>myid file is missing
myid file is missing
2022-08-01 20:01:00 【cx7】
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing /usr/opt/zookeeper/bin/../conf/zoo.cfg
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:154)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:101)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
Caused by: java.lang.IllegalArgumentException: myid file is missing
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:406)
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:150)
... 2 more
Zookeeper配置文件如下
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/software/zkData
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1
## Metrics Providers
#
# https://prometheus.io Metrics Exporter
#metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider
#metricsProvider.httpPort=7000
#metricsProvider.exportJvmInfo=true
server.1=hadoop001:2888:3888
server.2=hadoop002:2888:3888
server.3=hadoop003:2888:3888
解决方案
进入 dataDir=/software/zkData under the path of this configuration,Create a file named myid的文件.Fill in the content in the cluster configuration,The one corresponding to the clusterid 号.
比如,My current cluster is hadoop001,I will fill in1
server.1=hadoop001:2888:3888
server.2=hadoop002:2888:3888
server.3=hadoop003:2888:3888
边栏推荐
- 密码学的基础:X.690和对应的BER CER DER编码
- 第57章 业务逻辑之业务实体与数据库表的映射规则定义
- 解除360对默认浏览器的检测与修改
- 因斯布鲁克大学团队量子计算硬件突破了二进制
- 57: Chapter 5: Develop admin management services: 10: Develop [get files from MongoDB's GridFS, interface]; (from GridFS, get the SOP of files) (Do not use MongoDB's service, you can exclude its autom
- 给定中序遍历和另外一种遍历方法确定一棵二叉树
- Compose实战-实现一个带下拉加载更多功能的LazyColumn
- 第56章 业务逻辑之物流/配送实体定义
- Redis 做网页UV统计
- 【多任务优化】DWA、DTP、Gradnorm(CVPR 2019、ECCV 2018、 ICML 2018)
猜你喜欢
随机推荐
AcWing 797. 差分
数据库系统原理与应用教程(071)—— MySQL 练习题:操作题 110-120(十五):综合练习
锐捷交换机基础配置
环境变量,进程地址空间
数据可视化
【多任务优化】DWA、DTP、Gradnorm(CVPR 2019、ECCV 2018、 ICML 2018)
LTE时域、频域资源
小数据如何学习?吉大最新《小数据学习》综述,26页pdf涵盖269页文献阐述小数据学习理论、方法与应用
数据库系统原理与应用教程(070)—— MySQL 练习题:操作题 101-109(十四):查询条件练习
latex论文神器--服务器部署overleaf
互联网大厂研发流程
【多任务模型】Progressive Layered Extraction: A Novel Multi-Task Learning Model for Personalized(RecSys‘20)
【nn.Parameter()】生成和为什么要初始化
1个小时!从零制作一个! AI图片识别WEB应用!
【Untitled】
Failed to re-init queues : Illegal queue capacity setting (abs-capacity=0.6) > (abs-maximum-capacity
ssh & scp
有序双向链表的实现。
【七夕特别篇】七夕已至,让爱闪耀
为你的“架构”安排定期体检吧!









