当前位置:网站首页>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
边栏推荐
- Mobile Zero of Likou Brush Questions
- Pytorch模型训练实用教程学习笔记:四、优化器与学习率调整
- 18、分布式配置中心nacos
- 58: Chapter 5: Develop admin management services: 11: Develop [admin face login, interface]; (not measured) (using Ali AI face recognition) (demonstrated, using RestTemplate to implement interface cal
- 18. Distributed configuration center nacos
- 58:第五章:开发admin管理服务:11:开发【管理员人脸登录,接口】;(未实测)(使用了阿里AI人脸识别)(演示了,使用RestTemplate实现接口调用接口;)
- mysql解压版简洁式本地配置方式
- 密码学的基础:X.690和对应的BER CER DER编码
- 互联网大厂研发流程
- Arthas 常用命令
猜你喜欢
随机推荐
我的驾照考试笔记(1)
OSPO 五阶段成熟度模型解析
不同的操作加不同的锁详解
部署zabbix
CMake教程——Leeds_Garden
常用命令备查
JS数组过滤
The graphic details Eureka's caching mechanism/level 3 cache
Win10, the middle mouse button cannot zoom in and out in proe/creo
From ordinary advanced to excellent test/development programmer, all the way through
用户体验好的Button,在手机上不应该有Hover态
研究生新同学,牛人看英文文献的经验,值得你收藏
作为程序员你应该会的软件
ThreadLocal讲义
【无标题】
Determine a binary tree given inorder traversal and another traversal method
【七夕特别篇】七夕已至,让爱闪耀
openresty 动态黑白名单
SIPp 安装及使用
Pytorch模型训练实用教程学习笔记:一、数据加载和transforms方法总结