Zookeeper已经设置了myid文件但是依然报错myid file is missing
完整报错:
(Python3.6) appleyuchi@Desktop:logs$ cat zookeeper-appleyuchi-server-Desktop.out
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/appleyuchi/bigdata/apache-zookeeper-3.6.0-bin/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/appleyuchi/bigdata/spark-2.3.1-bin-hadoop2.7/jars/slf4j-log4j12-1.7.16.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2020-05-16 23:01:32,479 [myid:] - INFO [main:QuorumPeerConfig@173] - Reading configuration from: /home/appleyuchi/bigdata/apache-zookeeper-3.6.0-bin/conf/zoo_leader.cfg
2020-05-16 23:01:32,488 [myid:] - WARN [main:VerifyingFileFactory@65] - ~/dfs/zookeeper/data is relative. Prepend ./ to indicate that you're sure!
2020-05-16 23:01:32,488 [myid:] - WARN [main:VerifyingFileFactory@65] - ~/dfs/zookeeper/log is relative. Prepend ./ to indicate that you're sure!
2020-05-16 23:01:32,497 [myid:] - INFO [main:QuorumPeerConfig@459] - clientPortAddress is 0.0.0.0:2181
2020-05-16 23:01:32,497 [myid:] - INFO [main:QuorumPeerConfig@463] - secureClientPort is not set
2020-05-16 23:01:32,497 [myid:] - INFO [main:QuorumPeerConfig@479] - observerMasterPort is not set
2020-05-16 23:01:32,497 [myid:] - INFO [main:QuorumPeerConfig@496] - metricsProvider.className is org.apache.zookeeper.metrics.impl.DefaultMetricsProvider
2020-05-16 23:01:32,502 [myid:] - ERROR [main:QuorumPeerMain@98] - Invalid config, exiting abnormally
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing /home/appleyuchi/bigdata/apache-zookeeper-3.6.0-bin/conf/zoo_leader.cfgat org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:197)at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:124)at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:90)
Caused by: java.lang.IllegalArgumentException: myid file is missingat org.apache.zookeeper.server.quorum.QuorumPeerConfig.checkValidity(QuorumPeerConfig.java:810)at org.apache.zookeeper.server.quorum.QuorumPeerConfig.setupQuorumPeerConfig(QuorumPeerConfig.java:681)at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:506)at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:193)... 2 more
Invalid config, exiting abnormally
2020-05-16 23:01:32,504 [myid:] - INFO [main:ZKAuditProvider@42] - ZooKeeper audit is disabled.
2020-05-16 23:01:32,507 [myid:] - ERROR [main:ServiceUtils@42] - Exiting JVM with code 2
仔细查过路径没有错,但是启动时就是报错找不到
解决方案:
dataDir=~/dfs/zookeeper/data
dataLogDir=~/dfs/zookeeper/log
改成
dataDir=/home/appleyuchi/dfs/zookeeper/data
dataLogDir=/home/appleyuchi/dfs/zookeeper/log
原因是:
Zookeeper不认识~这个东西,所以写成完整路径即可。
Zookeeper已经设置了myid文件但是依然报错myid file is missing相关推荐
- 尚硅谷在线教育项目P132修改pom.xml等文件后依然报错not found
原因: 虽然springboot默认加载resources中的文件,但是似乎在pom文件中指定了资源加载路径后,springboot的默认设置就失效了,必须在pom文件中一起指定application ...
- CAJ文件报错提示“file does not exist”之类如何解决
我在使用7.2版本的CAJ阅读器查看CAJ文件的时候,无论打开什么文件,都会报错"the file does not exist"之类的提示:然而在无意间的搜索中,我想起(至少在该 ...
- IDEA快捷键及xml文件中网址报错
Alt+Shift+Tab 切换窗口(从后往前) div+Tab 补全为 <div></div> #box+Tab ...
- mysql8 设置了默认值 CURRENT_TIMESTAMP 依然报null问题
mysql8 设置了默认值 CURRENT_TIMESTAMP 依然报null问题 原因是 explicitdefaultsfor_timestamp 参数,在mysql8里面默认变为了ON.改成of ...
- Unity Android平台读取文件时添加了权限依然报错“Access to the path is denied“
Unity 调用Android读取文件"Access to the path is denied" 添加权限依然报错 记录一下Unity 调用Android读取文件"Ac ...
- python无法启动此程序、因为文件损坏_python报错:无法启动此程序,因为计算机中丢失...
python报错:无法启动此程序,因为计算机中丢失api-ms-win-crt-runtime-|1-1-0.dll api-ms-win-crt-runtime-|1-1-0.dll丢失的解决方法 ...
- 解决Springboot文件上传报错,java.io.FileNotFoundException: D:\System\Temp\tomcat.819...00.tmp (系统找不到指定的文件。)
Springboot文件上传,csdn上的方法无非是下面这两个: imgFile.transferTo(imageFolder); // 方法一/*** 方法二* FileUtils.copyInpu ...
- 在vscode中用tsc编译ts文件的时候报错,tsc : 无法加载文件,因为在此系统上禁止运行脚本;SecurityError
一.问题描述: 1. TypeScript安装成功,在C盘的Administrator目录下,运行 tsc -v 也可看到TypeScript的版本. 2. 但在vscode中的时候运行tsc 编译t ...
- python跳过错误_Pandas之read_csv()读取文件跳过报错行的解决
读取文件时遇到和列数不对应的行,此时会报错.若报错行可以忽略,则添加以下参数: 样式: pandas.read_csv(***,error_bad_lines=False) pandas.read_c ...
最新文章
- 面怎么煮更好吃?你必须知道的7个小技巧
- ubuntu12下subversion 1.6升级为1.8版本
- CodeForces - 125C Hobbits' Party(思维+构造)
- 速达5000进销存PDA条码打印扫码开单-吉度PDA定制
- php智能电视如何安装直播软件,海信 LED 55EC520UA 怎么安装第三方软件看直播?教你安装方法...
- 谷歌金山词霸正式发布
- python爬取网页数据出现中文乱码解决办法
- 商业融资项目计划PPT模板
- Vue中路由 (Vue Router)
- 下载歌曲的时候嫌麻烦?打造专属你的音乐下载器
- Mac小白用户看过来,教你这样卸载Mac应用程序
- 高中数学相关的专业术语
- 《 Socket.IO》 解决 WebSocket 通信
- 互联网快讯:粉笔科技双核驱动实现突围;猿辅导以科技助力教育提质增效;抖音升级谣言专项治理
- Python 学习笔记 元组 xxxxxxx XXXXXXXXXX
- 谈谈InterSystems IRIS数据平台的部署灵活性与TCO降低
- 8-13外部排序-败者树
- python 分班_按成绩分班
- java memory copy_Java Unsafe.copyMemory java.lang.IllegalArgumentException
- BT下载方式改为uTorrent下载、BS上传
热门文章
- HTML 5 全局属性
- photoshop图像滤镜——素描算法(含matlab与C代码)
- 学习使用Bing Maps Silverlight Control(一):准备和新建
- XCTF-高手进阶区:php_rce
- c语言接口作用是什么,C语言接口与实现之异常处理try-except
- android settext 参数,Android TextView.setTextColor()的参数设置方式
- Learning Collaborative Agents with Rule Guidance for Knowledge Graph Reasoning-学习笔记
- touchstart与click同时触发
- 图像局部显著性—点特征(Fast)
- 链接分析算法系列-机器学习排序