u盘装系统filemissing-()

来源:191路由网 2022-12-29 02:37:45

()

zookeeper启动成功,但是使用bin/zkServer.sh status命令显示没有真正运行成功

[root@oraserver apache-zookeeper-3.5.7-bin]# bin/zkServer.sh start/usr/bin/javaZooKeeper JMX enabled by defaultUsing config: /root/data/apache-zookeeper-3.5.7-bin/bin/../conf/zoo.cfgStarting zookeeper ... FAILED TO START

[root@localhost apache-zookeeper-3.5.7-bin]# bin/zkServer.sh status/usr/bin/javaZooKeeper JMX enabled by defaultUsing config: /root/data/apache-zookeeper-3.5.7-bin/bin/../conf/zoo.cfgClient port found: 2181. Client address: localhost.电脑Error contacting service. It is probably not running.

查看日志如下

[root@oraserver apache-zookeeper-3.5.7-bin]# cd logs[root@oraserver logs]# lszookeeper-root-server-oraserver.out[root@oraserver logs]# cat zookeeper-root-server-oraserver.out

org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing /home/crxj-coll/zookeeper-3.4.5/bin/../conf/zoo.cfg at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:121) 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:344) at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:117) ... 2 moreInvalid config, exiting abnormally

根据日志我们可以看出myid文件缺失,应该是myid文件的路径不对,修改zoo.cfg配置文件中的dataDir属性,保证路径正确即可电脑 ,我这里是在zookeeper安装目录中新建了一个data目录存放myid文件,dataDir修改为如下所示。

# The number of milliseconds of each ticktickTime=2000# The number of ticks that the initial# synchronization phase can takeinitLimit=10# The number of ticks that can pass between# sending a request and getting an acknowledgementsyncLimit=5# the directory where the snapshot is stored.# do not use /tmp for storage, /tmp here is just# example sakes.dataDir=/root/data/apache-zookeeper-3.5.7-bin/data# the port at which the clients will connectclientPort=2181server.0=192.168.157.129:2888:3888server.1=192.168.157.130:2888:3888server.2=192.168.157.131:2888:3888

修改完成后便可成功启动。

[root@oraserver apache-zookeeper-3.5.7-bin]# bin/zkServer.sh start/usr/bin/javaZooKeeper JMX enabled by defaultUsing config: /root/data/apache-zookeeper-3.5.7-bin/bin/../conf/zoo.cfgStarting zookeeper ... STARTED[root@oraserver apache-zookeeper-3.5.7-bin]# bin/zkServer.sh status/usr/bin/javaZooKeeper JMX enabled by defaultUsing config: /root/data/apache-zookeeper-3.5.7-bin/bin/../conf/zoo.cfgClient port found: 2181. Client address: localhost.Mode: follower
电脑

点击展开全文

相关阅读

三星无法读取u盘apk-(三星无法读取u盘)

(三星无法读取u盘)NAND闪存在制程、工艺和产能的飞跃,不断推动着存储器产品的性能暴涨,也深刻的影响了产品形态和行业走向。大到内置的PCIe协议的固态硬盘,巅峰性能超7000MB/s,小到外置的移动固态硬盘,瞬间传输能达到1050MB/s。如此的性能增长,远远超过了消费者的性能认知,要...

2022-12-29

u盘一键装机系统-(u盘一键装机系统错误)

(u盘一键装机系统错误)当电脑可以正常开机时,我们可以使用一键式重新安装系统进行重新安装,但当系统无法启动时,我们如何下载并安装系统?其实,U盘也可以一键下载安装系统。我为您组织了U盘安装系统的图文课程。大...

2022-12-29

win10dns怎么查询-(win10dns在哪里看)

(win10dns在哪里看)PC的DNS缓存出现问题可能会导致无法连接到Internet。如果您尝试过清除浏览器缓存和cookie等常用技巧,则刷新Windows10的DNS可能会解决您的问题。DNS缓存的作用域网络系统(DNS)电脑服务器将熟悉的域名(如howtogeek.com)转换为计算机用于相互连接的IP地址。当程序尝试连接到goo...

2022-12-29

u盘做系统按个键启动-(u盘做系统按个键启动怎么办)

(u盘做系统按个键启动怎么办)怎么设置u盘启动,品牌机还是最新的还是老款的我今天找了几个台式机给大家示范一下台式机组装的大部分都是按DEL键开机的时候按删除键把它先重启一下电脑这就进来了然后进来之后直接把这个u盘或者哪个系统的硬盘插在电...

2022-12-29

win10搜索框怎么删除-(win10搜索框删除文件还在)

(win10搜索框删除文件还在)对于很多用户来说windows搜索框总是看着不太顺眼,下面给大家详细介绍win10任务栏搜索关闭步骤。1、在win10任务栏的搜索栏空白处,右键选择搜索选项,如下图所示:2、默认是显示...

2022-12-29

191路由网 - 192.168.1.1,192.168.0.1无线路由器设置教程

版权声明:本站的文章和图片来自互联网收集,仅做分享之用如有侵权请联系站长,我们将在24小时内删除