当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
研究生新同学,牛人看英文文献的经验,值得你收藏
【kali-信息收集】(1.2)SNMP枚举:Snmpwalk、Snmpcheck;SMTP枚举:smtp-user-enum
【kali-信息收集】(1.5)系统指纹识别:Nmap、p0f
【社媒营销】如何知道自己的WhatsApp是否被屏蔽了?
MySQL你到底都加了什么锁?
myid file is missing
17. Load balancing
regular expression
为什么限制了Oracle的SGA和PGA,OS仍然会用到SWAP?
Creo5.0 rough hexagon is how to draw
Acrel-5010重点用能单位能耗在线监测系统在湖南三立集团的应用
常用命令备查
【软考软件评测师】基于规则说明的测试技术下篇
Compose实战-实现一个带下拉加载更多功能的LazyColumn
【无标题】
【nn.Parameter()】生成和为什么要初始化
WhatsApp群发实战分享——WhatsApp Business API账号
OSPO 五阶段成熟度模型解析
【个人作品】记之-串口日志记录工具
二维、三维、四维矩阵每个维度含义解释