apache-zookeeper

UnknownHostException kafka

本秂侑毒 提交于 2019-12-05 17:16:09
问题 I am trying to setup a Kafka cluster (the first node in the cluster actually). I have a single node zookeeper cluster setup. I am setting up kafka on a separate node. Both running CentOS 6.4, running IPV6 which is a bit of a PITA. I verified that the machines can talk to each other using netcat. When I startup kafka, I am getting the following exception (which causes kafka to shut down). EDIT: I got kafka starting, I had to set the host.name property in the server.config file. I was able to

SolrCloud ZooKeeper Configuration updates

允我心安 提交于 2019-12-05 17:09:04
问题 How do I update an existing configuration file of SolrCloud in the Zoo Keeper? I am using Solr4 Beta version with ZooKeeper 3.3.6. I have updated a configuration file, and restarted the Solr Instance which uploads the configuration file to the ZooKeeper. But when I check the configuration file from the SolrCloud Admin console, I don't see the updates. I am not able to understand if this is an issue with SolrCloud admin console or if I am not successful in uploading the config file to

Copy/Migrate old zookeeper znode/data to new zookeeper

女生的网名这么多〃 提交于 2019-12-05 17:02:05
We have an old zookeeper 3-cluster quorum, with some permanent routing info stored in znodes/data. Now we are setting up another brand new 3-cluster quorum on a different data center, and we want to migrate the routing info to it. What's the best reliable way to do this? Will simply copy the transaction log do? Or better with snapshot? Or if there are some tools to extract data from old znodes and replay creation onto the new ones? Similar question found, but not answered best way to copy data across 2 zookeeper cluster? I know a couple of ways, One is the backup-restore, i.e. you copy the

Storm KafkaSpout stopped to consume messages from Kafka Topic

我的梦境 提交于 2019-12-05 15:57:10
My problem is that Storm KafkaSpout stopped to consume messages from Kafka topic after a period of time. When debug is enabled in storm, I get the log file like this: 2016-07-05 03:58:26.097 o.a.s.d.task [INFO] Emitting: packet_spout __metrics [#object[org.apache.storm.metric.api.IMetricsConsumer$TaskInfo 0x2c35b34f "org.apache.storm.metric.api.IMetricsConsumer$TaskInfo@2c35b34f"] [#object[org.apache.storm.metric.api.IMetricsConsumer$DataPoint 0x798f1e35 "[__ack-count = {default=0}]"] #object[org.apache.storm.metric.api.IMetricsConsumer$DataPoint 0x230867ec "[__sendqueue = {sojourn_time_ms=0.0

Zookeeper having KeeperException but Kafka able to create topics and produce/consume

青春壹個敷衍的年華 提交于 2019-12-05 14:51:40
问题 I recently setup Kafka on a single node CDH 5 setup with the aim of playing with it on a single node before moving to a real cluster. Initially, I just started the zookeeper server, with the kafka server and it was all fine. I could see that zookeeper was running on 2181 while Kafka was running on 9092. I then created a topic, and started the consumer and the producer and the consumer could see the messages the producer was sending. With happiness on my face, I moved to the tab with zookeeper

Securing zookeeper, where to start?

孤街醉人 提交于 2019-12-05 12:40:47
I feel lost trying to figure out what my options are. Apache's programmers guide and administrators guide do not detail anything substantial. My O'Reilly Zookeeper book barely talks about security... did I miss something? I was hoping to find tutorials through google about authenticating client connections, authorizing actions, and encrypting messages sent between zookeepers and client. I had a lot of trouble but I figured it out and the links at the bottom where a huge help to me. This code (using Curator) was something hard to figure out: List<ACL> myAclList = new ArrayList<ACL>(); aclList

what does 2n + 1 quorum mean?

孤街醉人 提交于 2019-12-05 10:49:33
I've come across this when describing the Zookeeper configuration for HBase, and I'm unfamiliar with the term. Does the 'N' have anything to do with the number of nodes in my HBase cluster? Or the number of nodes I should use in my Zookeeper cluster? phunt 2f+1 refers to the level of reliability/availablility you require, in general it is not related to performance. ZooKeeper ensembles (serving clusters) are made up of one or more servers which "vote" on each change. A majority of the original servers are required to "approve" any change before it's accepted. Clients (hbase in this case)

Seeing “partition doesn't exist” warnings/failures after kafka using kafka partition re-assignment tool

非 Y 不嫁゛ 提交于 2019-12-05 10:29:15
I am using kafka 0.8.1.1. I have a 3 node kafka cluster with some topics having around 5 partitions. I planned to increase the number of nodes to 5 in cluster and moving some partitions from existing topics to the new brokers. Previous partition state: broker1 : topic1 { partition 0 } broker2 : topic1 { partition 1,2} broker3 : topic1 { partition 3,4} New intended state: broker1 : topic1 { partition 0} broker2 : topic1 { partition 1} broker3 : topic1 { partition 3} broker4 : topic1 { partition 4} broker5 : topic1 { partition 2} command which I used: bin/kafka-reassign-partitions.sh -

TimeoutException: Timeout expired while fetching topic metadata Kafka

…衆ロ難τιáo~ 提交于 2019-12-05 09:54:26
I have been trying to deploy Kafka with schema registry locally using Kubernetes. However, the logs of the schema registry pod show this error message: ERROR Server died unexpectedly: (io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain:51) org.apache.kafka.common.errors.TimeoutException: Timeout expired while fetching topic metadata What could be the reason of this behavior? ' In order to run Kubernetes locally, I user Minikube version v0.32.0 with Kubernetes version v1.13.0 My Kafka configuration: apiVersion: v1 kind: Service metadata: name: kafka-1 spec: ports: - name: client port:

zookeeper not starting

泄露秘密 提交于 2019-12-05 09:18:10
问题 i'm working with zookeeper (http://zookeeper.apache.org/). downloaded 3.3.5 and create zoo.cfg and placed in $ZOOKEEPER/conf, started the zookeeper using zkServer start. but following is the error can any please help me here .. nfig or no quorum defined in config, running in standalone mode 2012-08-01 23:20:32,175 [myid:] - ERROR [main:ZooKeeperServerMain@54] - Invalid arguments, exiting abnormally java.lang.NumberFormatException: For input string: "C:\Development\apps\zookeeper\zookeeper3.4