zookeeper 集群启动时 出现 Error contacting service. It is probably not running 的解决办法

# zookeeper启动后,zkServer.sh status报错: Error contacting service. It is probably not running 全面分析 zookeeper使用问题,zkServer.sh status报错 阅读详情




在 zookeeper 集群配置成功后,启动时显示正常启动个,但是输入命令查看状态时报错!!!

错误信息:Error contacting service. It is probably not running

提示我 zookeeper 服务连接错误,zookeeper 服务可能没有运行!

错误信息如下图所示:






解决方案如下:



  • 方案一:关闭防火墙

为什么首先将问题定位到防火墙呢,因为在 Linux 下是很严谨的,如果你配置的集群和我的配置方法一样,如下图:




使用的 zookeeper 集群间通信的配置语法如下:

语法格式:server + myid = IP + 选举端口 + 投票端口 

在这儿涉及到 IP 的访问情况,所以需要关闭,要不就在防火墙中新增端口,不过我觉得直接关闭防火墙最直接-简单。



  • 方案二:缺少 zookeeper 集群所需的文件

 我的另外一篇博客中关于 zookeeper 集群的搭建有详细的过程介绍,其中包含了所需文件的创建工作,这个是必不可少的;

 如上图配置文件所示,dataDir 所指向的目录中,必须创建一个 myid 文件 ,里面只有一个值,那就是节点服务的唯一描述;

 关于这个描述,就像数据库中的 主键 Id 一样,手动创建一个即可,它在 zookeeper 启动的时候,就会加载!!!



  • 方案三:zoo.cfg 配置文件中指向的路径错误

 当然如上图配置文件所示,路径比较复杂时,便于管理与区分,但是需要我们的细心,一不注意就会写错一个字母,这个是最难发现的了。


  • 方案四:zookeeper 客户端端口被占用

 端口占用,是在实际生产环境中经常遇到的,但是可以避免的;可以输入命令 ”netstat -anp|grep 2001“;

这个端口是已经使用并监听的端口, 如果端口可用,就没有返回值,如下图:







electron windows设置镜像地址环境变量报错npm error `ELECTRON_MIRROR` is not a valid npm option 如果你是在使用某个特定的脚本或配置文件,请检查该文件中是否有不正确的配置项,并进行相应的修正。确保你遵循electron的官方安装指南,并且没有包含不必要的或错误的配置选项。如果问题依然存在,可以查看npm的官方文档或者相关社区获取更多帮助。 阅读详情

相关推荐

MATLAB新手必看:Stewart平台运动学逆解从入门到实战(附完整代码)

本文详细介绍了如何使用MATLAB实现Stewart平台的运动学逆解,从基础原理到完整代码实现,涵盖并联机器人的数学建模、MATLAB编程和Simulink集成。通过实战案例和可视化分析,帮助新手快速掌握Stewart平台的运动学逆解技术,适用于机器人学和控制理论领域的研究与应用。

dream的博客 551

成功解决ZooKeeper配置中出现Error contacting service. It is probably not running

前言 Linux版本:CentOS-6.7-x86_64-bin-DVD1.iso (链接:点击打开链接密码:h51u) JDK版本:1.8 (JDK安装过程参考:点击打开链接) ZooKeeper版本:3.4.6 (ZooKeeper安装教程参考:点击打开链接) 报错过程 通过命令zkServer.sh start之后,显示STARTED 上面的结果看似已经启动了,但是,我们.........

前方一片光明 16万+

交流伺服电机绝对式位置控制实战指南

伺服电机控制是工业自动化的核心技术之一,其核心原理是通过闭环反馈实现精确位置控制。绝对值编码器作为关键传感器,能提供单圈内的绝对位置信息,避免了增量式编码器的累计误差问题。在工程实践中,电子齿轮比配置、位置环PID调节等技术直接影响系统动态性能。本文以包装机械为典型场景,详细解析了从硬件选型到参数整定的全流程实现方案,特别是针对单圈绝对值编码器初始化和限位保护等易错环节,给出了经过验证的解决方案。通过合理设置17位编码器的电子齿轮比和优化运动控制算法,最终实现了±0.05°的高精度定位。

weixin_42531588的博客 281

zookeeper集群重启后 Error contacting service. It is probably not running 的原因分析及解决方案

zookeeper集群重启后 Error contacting service. It is probably not running 的原因分析及解决方案 Zookeeper集群搭建相对比较容易,但有些细节需要注意,否则很可能会报错:Error contacting service. It is probably not running ,这个错误是查询集群节点状态的时候所反馈的报错信息,也就是 zkServer.sh status 这个命令的输出。 集群的根本在于节点之间互相知道对方的...

zsk_john的技术分享专用博客 9542

智能安防摄像头埋点实践:用户行为与设备状态的闭环监控(含AI事件)

智能安防摄像头埋点闭环体系设计及应用实践 摘要: 本文系统阐述了智能安防摄像头埋点闭环体系的设计与实践。首先分析了传统埋点的不足及闭环埋点的价值,提出由用户行为埋点、设备状态埋点和AI事件埋点构成的三维埋点体系框架。详细介绍了闭环监控的四大流程:数据采集、汇聚清洗、分析建模和智能决策。通过误报优化、个性化策略等案例展示了AI事件闭环的实际应用价值,并探讨了隐私合规、性能优化等关键挑战的解决思路。最后展望了端侧AI增强、预测型埋点等未来发展趋势。该体系实现了从数据采集到业务决策的完整闭环,有效提升了AI模型性

专注智能硬件软硬件产品经理成长与实战,分享从需求定义到量产落地的真实日记。涵盖IoT趋势洞察、研发协作经验、产品方法论与工具箱,用轻松有趣的“汪式”视角,陪伴产品经理成长、避坑与升级。 1046

单细胞分析R包monocle3服务器安装教程

由于centos7系统yum只能安装到低版本gdal,而monocle3依赖包需要 gdal>2 版本,从gdal官网下载2.4.4版本编译安装。monocle3的安装是通过cole-trapnell-lab安装的,该包挂在github上,需要通过github先安装leidenbase包,需要提前安装devtools包下载工具。接着利用BiocManager安装相应的依赖包,由于这些包的特殊性,所以不要切换到国内Bio_Mirror镜像,否则会找不到,如果一次不成功,缺啥补啥即可。运行 ldconfig。

qq_36608036的博客 1万+

Error contacting service. It is probably not running. 的解决办法

问题概述 关于这个问题,是在zookeeper启动时遇到的,输入命令 “ ./zkServer.sh start ” 启动时未报错,链接时连接不上zookeeper服务,查看zookeeper状态输入命令 “ ./zkServer.sh status” 时出现 “error contacting service. it is probably not running ” 异常截图如下:...

Spring Boot-Common On With You 1万+

用Typora画流程图和序列图:Mermaid语法实战教程(含常见报错解决)

本文是一份详细的Typora与Mermaid语法实战教程,教你如何在Markdown文档中高效绘制流程图和序列图。文章涵盖从环境配置、核心语法到复杂图表构建的全过程,并重点解析了常见报错原因与解决方案,助你将可视化图表无缝融入文档工作流。

weixin_29279101的博客 298

启动Zookeeper报错:Error contacting service. It is probably not running.

启动Zookeeper后,检查状态,问题报错:Error contacting service. It is probably not running.

俗夫胸襟谁识我 1万+

PPL文档——Excel制作的甘特图加上动态今日线

当很多项目需要跟踪进度时,我们介绍一种在Excel中创建甘特图。

qq_34777858的博客 7063

springboot整合sharding-jdbc实现分库分表详解

springboot整合sharding-jdbc实现分库分表详解

congge 9090

zookeeper Error contacting service. It is probably not running

通过命令zkServer.sh start之后,显示STARTED 通过client测试报错 无法连接连接关闭 Connecting to localhost:2181 2020-03-29 12:44:31,855 [myid:] - INFO [main:Environment@100] - Client environment:zookeeper.version=3.4.13...

ywl470812087的博客 12万+

RK3588上使用PCIE接口的国产千兆网卡YT6801

YT6801是裕太微电子开发的一款国产千兆PCIE以太网控制器芯片,可作为RK3588的PCIE外扩网口使用。

荻夜的博客 8202

Zookeeper启动失败解决办法汇总——Error contacting service. It is probably not running.

文章目录1.报错详情2.解决办法2.1 常见问题解决(办法汇总)2.1.1 JDK 是否配好,版本是否与 Zookeeper 不兼容2.2.2 端口是否被占用2.2.3 网卡问题2.2.4 网络问题2.2.5 (慎用!)删除 `dataDIr` 目录下的文件后重启2.2 查看日志解决 1.报错详情 jps 查看进程是正常的,但是 zkServer.sh status 查看的时候报错。 [root@node2 zookeeper-3.4.6]# jps 1260 QuorumPeerMain 1278 Jps

bboy枫亭的博客 1万+

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

VC中sqlite的使用

在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示

zookeeper报错 Error contacting service. It is probably not running.

zookeeper报错 Client port found: 2183. Client address: localhost. Client SSL: false. Error contacting service. It is probably not running. sh zkServer.sh start后正常, 但是查看状态时sh zkServer.sh status出现如下错误 [root@centos02 bin]# sh zkServer.sh status ZooKeeper JMX e

yiyayiyayi_ya的博客 2942

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Zookeeper错误1_zookeeper Error contacting service. It is probably not running异常1

转载来源一:    公司要用zookeeper,所以昨天在本机装了一个伪集群,安装步骤就不在这说了,很简单,网上也有很多的图文教程.但是启动完了之后执行  zkServer.sh status 的时候 报了Error contacting service. It is probably not running错误,在网上找了集中解决办法:  1,打开zkServer.sh 找到status

wang_zhenwei的博客 2760

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

Zookeeper出现Error contacting service. It is probably not running问题

Zookeeper出现Error contacting service. It is probably not running问题 使用多执行同时启动三台虚拟机的zookeeper能够成功启动,但查看三台启动状态时,hadoop1出现Error contacting service. It is probably not running问题。 解决:1、关闭多执行 2、使用zkServer.sh stop将三台虚拟机的zookeeper服务关闭 ...

qq_52159080的博客 9658

解决zookeeper集群重启 Error contacting service. It is probably not running 问题

一 问题出现情形 1 集群启动后异常关闭,重启出错 2 集群未正常启动 二 查看zookeeper.out分析原因 cat zookeeper.out 1 网络问题。排查防火墙 java.net.NoRouteToHostException: 没有到主机的路由 (Host unreachable) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlain.

Baron_ND的博客 2481

ZooKeeper集群搭建Error contacting service. It is probably not running.

一、错误原文 [root@localhost bin]# zkServer.sh start --启动命令 JMX enabled by default Using config: /yiang/zookeeper/bin/../conf/zoo.cfg Starting zookeeper ... already running as process 1911. --显示...

qq_43227967的博客 1005

zookeeper配置中出现Error contacting service. It is probably not running

最近在配置zookeeper集群中,三台zookkeeper机器配置完毕,zookeeper集群部分配置如下: server.1=192.168.0.104:2888:3888 server.2=192.168.0.105:2888:3888 server.3=192.168.0.111:2888:3888进入到zookeeper的bin目录下,通过./zkServer.sh restart进行

lishirong_李世荣的专栏 5万+

zookeeper启动后,查看status,报Error contacting service. It is probably not running.解决办法!

zookeeper一启动就开始查询zookeeper状态,然后报如下错误! ZooKeeper JMX enabled by default Using config: /home/node2/zookeeper-3.4.14/bin/../conf/zoo.cfg Error contacting service. It is probably not running. 网上帖子很多,关防火...

weixin_36340771的博客 544

docker Zookeeper集群正常启动,查看状态 Error contacting service. It is probably not running.

我在虚拟机上使用docker部署了三个zookeeper容器 zookeeper集群 创建zookeeper1容器: docker run --name zookeeper1 -d \ --network app-tier \ -e ALLOW_ANONYMOUS_LOGIN=yes \ -e ZOO_SERVER_ID=4 \ -e ZOO_SERVERS=0.0.0.0:2881:3881...

godelgnis的博客 3774

ZooKeeper集群部署实验 出现Error contacting service. It is probably not running.

(切换到/root/zookeeper-3.4.14/bin目录下, 我的zookeeper-3.4.14上传到了/root/目录下)将另外一台或两台节点的ZooKeeper服务启动后: 状态为running, Mode为 leader 或 follower。在zookeeper-3.4.14/bin目录下, 启动ZooKeeper服务。1.启动ZooKeeper服务。

IT_linux的博客 793

Zookeeper无法启动Error contacting service. It is probably not running

转载地址:https://blog.csdn.net/u012453843/article/details/70878117 在启动zookeeper集群的单个zookeeper节点时总是报如下错误 [root@7-2 opt]# /opt/zookeeper/bin/zkServer.sh start ZooKeeper JMX enabled by default Using config: /opt/zookeeper/bin/../conf/zoo.cfg Error contacting

Jerry00713的博客 3906

解决 Zookeeper集群启动失败,提示 Error contacting service. It is probably not running.

刚学到zookeeper 记录一下出现的错误,死活开启不了服务,经查阅后发现是防火墙问题。(关闭防火墙命令在文章底部) 如果设置了SSH免密登录 则在zoo.cig中如下设置; 如果没有设置ssh免密登录,把“=”后面设置为IP:通信端口号:选举端口号即可(文章底部有一个连接,搭建集群的方式是IP的方式) [root@slave2 zookeeper-3.4.14]# vim co...

一名准程序员 2289

关于Zookeeper配置status状态出现Error contacting service. It is probably not running.问题的解决

Zookeeper配置status状态出现Error contacting service. It is probably not running.

Five的博客 1721
上一篇: Centos-7.2 下搭建 Zookeeper-3.5.3 集群的搭建与测试
下一篇: Maven 手动将Jar包添加到本地仓库
TechBro华仔
TechBro华仔 优质创作者: Java技术领域 优质创作者: Java技术领域 领域专家: 后端开发技术领域 领域专家: 后端开发技术领域
博客等级 码龄11年 5万+粉丝 430原创
评论 6
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

TechBro华仔

日拱一卒无有尽,功不唐捐终入海

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值