启动zookeeper报错already running as process
来源:互联网 发布:微信公共号平台源码 编辑:程序博客网 时间:2024/06/15 10:05
今天启动zookeeper的时候报错:
[root@hadoop-one zookeeper-3.4.5]# bin/zkServer.sh start
JMX enabled by default
Using config: /root/zookeeper/zookeeper-3.4.5/bin/../conf/zoo.cfg
Starting zookeeper ... already running as process 947..
看了下947这个进程,发现是linux系统进程,应该不会冲突。又检查了下zookeeper会使用到的几个端口号,也都没有被占用。
后来打开bin/zkServer.sh启动脚本,搜了下会抛出上面那段话的地方:
echo -n "Starting zookeeper ... " if [ -f $ZOOPIDFILE ]; then if kill -0 `cat $ZOOPIDFILE` > /dev/null 2>&1; then echo $command already running as process `cat $ZOOPIDFILE`. exit 0 fi fi
看到$ZOOPIDFILE,想到应该是进程ID文件已经存在,导致启不起来。
去dataDir下看,果然有一个zookeeper_server.pid,最后一次修改时间是几天前了。由于机器上次是因为断电异常关闭,大概导致了这个pid file的残留。
删掉,重启,OK。
阅读全文
0 0
- 启动zookeeper报错already running as process
- 启动zookeeper报错already running as process
- 启动zookeeper报错already running as process
- zookeeper 启动报错 Starting zookeeper ... already running as process xxx
- VNC启动报错A VNC server is already running as :10
- 启动WebLogic报错Server may already running
- 启动hadoop时报错,nodemanager running as process 6410. Stop it first.解决方法
- 报错:This generally means that another instance of this process was already running or is hung in the
- MySQL启动报错Another MySQL daemon already running with the same unix socket.
- mysql启动报错:Another MySQL daemon already running with the same unix socket.
- mysql启动报错:Another MySQL daemon already running with the same unix socket.
- postgresql无法启动,日志报错:make sure postgresql is not already running
- MyEclipse的weblogic启动报Server may already be running
- MyEclipse的weblogic启动报Server may already be running
- MyEclipse的weblogic启动报Server may already be running
- weblogic启动报Server may already be running
- Zookeeper启动报错
- 启动zookeeper报错:Error contacting service. It is probably not running
- 安卓笔记:CardView的使用
- 大小写的转换
- webpack配置ip和端口号的两种方式
- Graphics2D基本图形合成
- 转换进制
- 启动zookeeper报错already running as process
- oracle连不上的各种现象
- POI导入Excel含.xls和.xlsx
- 【Java】Java中的数据存储
- 《汇编语言》(第三版)王爽第十章实验11个人方法记录
- 指引测试人员追求的最高价值的smbt理论
- 从0-1打造最强性能Scrapy爬虫集群
- 4.3 STM32 时钟系统
- 如何优雅地删除Redis大键