当前位置:网站首页>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
边栏推荐
- 如何记录分析你的炼丹流程—可视化神器Wandb使用笔记【1】
- Oracle排序某个字段, 如果这个varchar2类型的字段有数字也有文字 , 怎么按照数字大小排序?
- An implementation of an ordered doubly linked list.
- Find the sum of two numbers
- 小数据如何学习?吉大最新《小数据学习》综述,26页pdf涵盖269页文献阐述小数据学习理论、方法与应用
- 数据库系统原理与应用教程(071)—— MySQL 练习题:操作题 110-120(十五):综合练习
- 把 Oracle 数据库从 RAC 集群迁移到单机环境
- 【nn.Parameter()】生成和为什么要初始化
- Compose实战-实现一个带下拉加载更多功能的LazyColumn
- datax - 艰难debug路
猜你喜欢
随机推荐
根据Uniprot ID/PDB ID批处理获取蛋白质.pdb文件
内网穿透 lanproxy部署
LTE时域、频域资源
【无标题】
Does LabVIEW really close the COM port using VISA Close?
30天刷题计划(五)
XSS range intermediate bypass
ThreadLocal讲义
多线程之生产者与消费者
【nn.Parameter()】生成和为什么要初始化
数据可视化
openresty 动态黑白名单
网络不通?服务丢包?这篇 TCP 连接状态详解及故障排查,收好了~
latex论文神器--服务器部署overleaf
密码学的基础:X.690和对应的BER CER DER编码
Creo5.0 rough hexagon is how to draw
An implementation of an ordered doubly linked list.
JS数组过滤
win10,在proe/creo中鼠标中键不能放大缩小
mysql解压版简洁式本地配置方式









