当前位置:网站首页>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
边栏推荐
- 【无标题】
- 第59章 ApplicationPart内置依赖注入中间件
- To drive efficient upstream and downstream collaboration, how can cross-border B2B e-commerce platforms release the core value of the LED industry supply chain?
- Mobile Zero of Likou Brush Questions
- AcWing 797. 差分
- 【kali-信息收集】(1.3)探测网络范围:DMitry(域名查询工具)、Scapy(跟踪路由工具)
- 内网穿透 lanproxy部署
- 安装win32gui失败,解决问题
- 【多任务模型】Progressive Layered Extraction: A Novel Multi-Task Learning Model for Personalized(RecSys‘20)
- deploy zabbix
猜你喜欢
随机推荐
【kali-信息收集】(1.2)SNMP枚举:Snmpwalk、Snmpcheck;SMTP枚举:smtp-user-enum
研究生新同学,牛人看英文文献的经验,值得你收藏
经验共享|在线文档协作:企业文档处理的最佳选择
57:第五章:开发admin管理服务:10:开发【从MongoDB的GridFS中,获取文件,接口】;(从GridFS中,获取文件的SOP)(不使用MongoDB的服务,可以排除其自动加载类)
To drive efficient upstream and downstream collaboration, how can cross-border B2B e-commerce platforms release the core value of the LED industry supply chain?
智能硬件开发怎么做?机智云全套自助式开发工具助力高效开发
Risc-v Process Attack
Mobile Zero of Likou Brush Questions
Database Plus 的云上之旅:SphereEx 正式开源 ShardingSphere on Cloud 解决方案
deploy zabbix
内网穿透 lanproxy部署
17. Load balancing
专利检索常用的网站有哪些?
瀚高数据导入
油猴hook小脚本
mysql解压版简洁式本地配置方式
正则表达式
【kali-信息收集】(1.6)服务的指纹识别:Nmap、Amap
kingbaseV8R3和postgreSQL哪个版本最接近?
网络不通?服务丢包?这篇 TCP 连接状态详解及故障排查,收好了~









