当前位置:网站首页>myid file is missing
myid file is missing
2022-08-01 19:57: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
这个配置的路径下,创建文件名字为myid
的文件。内容填写集群配置中,集群对应的那个id 号。
比如,我当前集群为hadoop001,我就填写1
server.1=hadoop001:2888:3888
server.2=hadoop002:2888:3888
server.3=hadoop003:2888:3888
边栏推荐
猜你喜欢
How to install voice pack in Win11?Win11 Voice Pack Installation Tutorial
PROE/Croe如何编辑已完成的草图,让其再次进入草绘状态
LabVIEW 使用VISA Close真的关闭COM口了吗
第59章 ApplicationPart内置依赖注入中间件
通配符 SSL/TLS 证书
使用微信公众号给指定微信用户发送信息
为你的“架构”安排定期体检吧!
Redis启动时提示Creating Server TCP listening socket *:6379: bind: No error
From ordinary advanced to excellent test/development programmer, all the way through
【多任务模型】Progressive Layered Extraction: A Novel Multi-Task Learning Model for Personalized(RecSys‘20)
随机推荐
SENSORO成长伙伴计划 x 怀柔黑马科技加速实验室丨以品牌力打造To B企业影响力
【webrtc】sigslot : 继承has_slot 及相关流程和逻辑
10 个 PHP 代码安全漏洞扫描程序
MySQL开发技巧——存储过程
终于有人把AB实验讲明白了
How to query database configuration parameters in GBase 8c, such as datestyle.What function or syntax to use?
使用微信公众号给指定微信用户发送信息
KDD2022 | 自监督超图Transformer推荐系统
An implementation of an ordered doubly linked list.
AcWing 797. 差分
泰德制药董事长郑翔玲荣膺“2022卓越影响力企业家奖” 泰德制药荣获“企业社会责任典范奖”
Pytorch模型训练实用教程学习笔记:一、数据加载和transforms方法总结
mysql自增ID跳跃增长解决方案
锐捷交换机基础配置
SQL的 ISNULL 函数
【无标题】
58:第五章:开发admin管理服务:11:开发【管理员人脸登录,接口】;(未实测)(使用了阿里AI人脸识别)(演示了,使用RestTemplate实现接口调用接口;)
Combining two ordered arrays
启明云端分享|盘点ESP8684开发板有哪些功能
油猴hook小脚本