apache-zookeeper

How to escape forward slash in java so that to use it in path

你说的曾经没有我的故事 提交于 2020-02-11 22:42:13
问题 I am trying to escape forward slash in String which can be used in path using Java. For example: String:: "Test/World" Now I want to use above string path.At the same time I have to make sure that "Test/World" will come as it is in path. Sorry if its duplicate but I couldn't find any satisfactory solution for this. My purpose is to use above string to create nodes in Zookeeper. Example: If I use following string to create node in Zokkeeper then I should get "Test/World" as a single node not

stormconf.ser doesn't exist error on worker

房东的猫 提交于 2020-02-05 09:21:29
问题 I have a Storm cluster with 2 nodes and 1 ZooKeeper. One of the worker dies because of the following error. Does any one have an idea on why stormconf.ser file is getting deleted? I am using 0.9.2 Storm and 3.4.6 ZK version. o.a.c.f.s.ConnectionStateManager [INFO] State change: CONNECTED 2015-01-31 01:23:06 o.a.c.f.s.ConnectionStateManager [WARN] There are no ConnectionStateListeners registered. 2015-01-31 01:23:07 b.s.d.worker [ERROR] Error on initialization of server mk-worker java.io

Does a kafka consumer machine need to run zookeeper?

无人久伴 提交于 2020-02-05 04:23:05
问题 So my question is this: If i have a server running Kafka (And zookeeper), and another machine only consuming messages, does the consumer machine need to run zookeeper too? Or does the server take care of all? 回答1: No. Role of Zookeeper in Kafka is: Broker registration: (cluster membership) with heartbeats mechanism to keep the list current Storing topic configuration: which topics exist, how many partitions each has, where are the replicas, who is the preferred leader, list of ISR for

SolrCloud: Unable to Create Collection, Locking Issues

落爺英雄遲暮 提交于 2020-02-03 09:50:22
问题 I have been trying to implement a SolrCloud, and everything works fine until I try to create a collection with 6 shards. My setup is as follows: 5 virtual servers, all running Ubuntu 14.04, hosted by a single company across different data centers 3 servers running ZooKeeper 3.4.6 for the ensemble 2 servers, each running Solr 5.1.0 server (Jetty) The Solr instances each have a 2TB, ext4 secondary disk for the indexes, mounted at /solrData/Indexes. I set this value in solrconfig.xml via

configure Druid to connect to Zookeeper on port 5181

走远了吗. 提交于 2020-02-02 11:18:33
问题 I'm running a MapR cluster and want to do some timeseries analysis with Druid. MapR uses a non-standard port for Zookeeper (port 5181 instead of the conventional port 2181). When I start the Druid coordinator service, it attempts to connect on the conventional Zookeeper port and fails: 2015-03-03T17:46:49,614 INFO [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. 2015-03-03T17:46:49,617 WARN [main-SendThread

configure Druid to connect to Zookeeper on port 5181

夙愿已清 提交于 2020-02-02 11:18:28
问题 I'm running a MapR cluster and want to do some timeseries analysis with Druid. MapR uses a non-standard port for Zookeeper (port 5181 instead of the conventional port 2181). When I start the Druid coordinator service, it attempts to connect on the conventional Zookeeper port and fails: 2015-03-03T17:46:49,614 INFO [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. 2015-03-03T17:46:49,617 WARN [main-SendThread

How to push Jenkins plugins changes using zookeeper

◇◆丶佛笑我妖孽 提交于 2020-01-25 09:43:05
问题 I've installed zookeeper on my machine(test machine) and trying to achieve following item: 1) Whenever the Jenkins plugins get some (version) changes, i need to push those changes to all other Jenkins machine(example: jenkins1, jenkins2, jenkins3, jenkins4) using zookeeper I googled and couldn't find any related articles/topics to understand in detail. It would be great if anybody throw some light on this. Thanks in advance. 来源: https://stackoverflow.com/questions/57959775/how-to-push-jenkins

Kafka Broker doesn't find cluster id and creates new one after docker restart

拜拜、爱过 提交于 2020-01-25 08:41:06
问题 I've created docker with kafka broker and zookeeper to start it with run script. If I do fresh start it starts normally and runs ok (Windows -> WSL -> two tmux windows, one session). If I shut down kafka or zookeeper and start it again it will connect normally. Problem occurs when I stop docker container (docker stop my_kafka_container). Then I start with my script ./run_docker. In that script before start I delete old container docker rm my_kafka_container and then docker run. Zookeeper

Zookeeper on OpenShift

和自甴很熟 提交于 2020-01-25 04:03:05
问题 Trying to run Zookeeper on OpenShift. This is not so straightforward due to Zookeeper's hard-coded and static configuration requirements. Can anyone suggest some recommendation or web resources that discuss ways to overcome these issues. Regards 回答1: I tried this a while back on 3.4 https://github.com/smarterclayton/openshift-zookeeper-cart - the gap was that the internal zookeeper leader port needs to be the same as the external port, and that's hard in V2. In V3 that's easier - here's the

How to calculate the number of zookeeper servers I need for a cluster?

一曲冷凌霜 提交于 2020-01-24 12:14:08
问题 Is there a formula to calculate the number of zookeeper servers I need? Say a cluster may have 50, 500, or 5000 servers running, how do I convert those numbers into how many zookeeper server I want to start? To put it another way, what's a good estimate for the workload a zk server can handle? Is it based on the size of the storage, or QPS the quorum receives, or some other metrics? 回答1: The workload an ensemble (cluster) of ZooKeeper servers can handle, is primarily dependent on the number