Re: Kafka segment.index.bytes

2019-02-23 Thread Soheil Pourbafrani
Thanks, Ismael Updating to Java 8 version 202 solved the problem! On Sun, Feb 24, 2019 at 10:09 AM Soheil Pourbafrani wrote: > Thanks, I use CentOS 7 and Java 8 (192) > > > I'll try updating Java to 202 > > On Sat, Feb 23, 2019 at 11:05 PM Ismael Juma wrote: > &

Re: Kafka segment.index.bytes

2019-02-23 Thread Soheil Pourbafrani
the space. It was fixed in Java 8 update 202. > > Ismael > > On Sat, Feb 23, 2019 at 2:19 AM Soheil Pourbafrani > wrote: > > > Hi, > > > > I have a 2-node Kafka cluster. When I create a new topic it preallocates > > about 21MB for each partition: > >

Kafka segment.index.bytes

2019-02-23 Thread Soheil Pourbafrani
Hi, I have a 2-node Kafka cluster. When I create a new topic it preallocates about 21MB for each partition: 10M /data/1-0/.index 0 /data/1-0/.log 10M /data/1-0/.timeindex 4.0K /data/1-0/leader-epoch-checkpoint And because I have many

Re: Each empty partition has 21MB by default

2019-02-19 Thread Soheil Pourbafrani
the property: segment.index.bytes > > You can find more information by searching that property in the > documentation: https://kafka.apache.org/documentation/ > > On Tue, Feb 19, 2019 at 6:39 AM Soheil Pourbafrani > wrote: > > > Recently I noticed that when I create a new empty t

Each empty partition has 21MB by default

2019-02-19 Thread Soheil Pourbafrani
Recently I noticed that when I create a new empty topic, each partition will have 21MB data! I even change the Kafka version from 0.11.3 to 2.1.0 but it shows the same behavior. For example, if I create a new topic using the command : kafka-topics.sh --zookeeper zoo1:2181 --create --topic test

Create empty topic result in massive data in the log-dir directory

2019-02-04 Thread Soheil Pourbafrani
Hi, I have a single node Kafka broker and 3-node Zookeeper cluster. When I create a new topic with 24 partitions using the command: kafka-topics.sh --zookeeper zoo3:2181 --create --topic test_topic --replication-factor 1 --partitions 24 It results in 481M data in the log-dir!? Actually, every

Re: Kafka topic data automatically restore after deleting topics

2019-02-03 Thread Soheil Pourbafrani
gt; Thanks, > Anji. > > On Sun, 3 Feb 2019, 17:27 Soheil Pourbafrani > > Hi, > > > > I use Kafka 0.11.3 > > > > I delete topics from Kafka using the command *kafka-topic.sh *and after a > > while, I observer Kafka just mark topics for deletion while the > >

Kafka topic data automatically restore after deleting topics

2019-02-03 Thread Soheil Pourbafrani
Hi, I use Kafka 0.11.3 I delete topics from Kafka using the command *kafka-topic.sh *and after a while, I observer Kafka just mark topics for deletion while the property *delete.topic.enable *was true! So I stop Kafka cluster and delete the data log directory of Kafka using the command *rm -r

Re: communication between brokers doesn't establish

2019-01-05 Thread Soheil Pourbafrani
EDIT: At the end of the controller.log logs the following line should be added: ERROR [Controller 100]: Error while electing or becoming controller on broker 100 (kafka.controller.KafkaController) java.util.NoSuchElementException: key not found: 0 On Sat, Jan 5, 2019 at 4:21 PM Soheil

communication between brokers doesn't establish

2019-01-05 Thread Soheil Pourbafrani
Hi, using Kafka 11.0.3 I set up a 2 node Kafka cluster on CentOS 7 with broker id 100 and 101. There is no firewall enabled. Both nodes can ping each other and establish the SSH connection successfully. When I start the cluster both broker successfully register their id into the zookeeper cluster

Re: Kafka sometime truncate new messages

2018-07-30 Thread Soheil Pourbafrani
3:02, Soheil Pourbafrani > wrote: > > > In addition, I should say this behavior is for when topics are created > > automatically. > > > > On Mon, Jul 30, 2018 at 2:01 PM, Soheil Pourbafrani < > soheil.i...@gmail.com > > > > > wrote: > > >

Re: Kafka sometime truncate new messages

2018-07-30 Thread Soheil Pourbafrani
In addition, I should say this behavior is for when topics are created automatically. On Mon, Jul 30, 2018 at 2:01 PM, Soheil Pourbafrani wrote: > I have a 3 node Kafka cluster. Upgrading Kafka version from 0.11.0.2 to > 0.11.0.3, I notice that Kafka sometimes truncate new message's topic

Kafka sometime truncate new messages

2018-07-30 Thread Soheil Pourbafrani
I have a 3 node Kafka cluster. Upgrading Kafka version from 0.11.0.2 to 0.11.0.3, I notice that Kafka sometimes truncate new message's topic. Here is the log: [2018-07-30 09:19:39,612] WARN [ReplicaFetcherThread-0-101]: Based on follower's leader epoch, leader replied with an unknown offset in

Re: Kafka metrics attribute meaning

2018-02-24 Thread Soheil Pourbafrani
s about metrics are here : > http://metrics.dropwizard.io/2.2.0/getting-started/ > > > On Sat, Feb 24, 2018 at 8:31 PM, Soheil Pourbafrani <soheil.i...@gmail.com > > > wrote: > > > Hi, > > > > What is the exact meaning of the Kafka metrics attrib

Re: Kafka Zookeeper Connection

2018-02-24 Thread Soheil Pourbafrani
> > On Sat, 24 Feb 2018 at 14:55, Soheil Pourbafrani <soheil.i...@gmail.com> > wrote: > > > Hi and Thanks, > > Excuse me, The Kafka version is 0.11 and Zookeeper version is 3.4.10 > > > > I've check Zookeeper logs and sessions are expiring and renewing > &g

Kafka metrics attribute meaning

2018-02-24 Thread Soheil Pourbafrani
Hi, What is the exact meaning of the Kafka metrics attributes, for example, the attribute kafka.server:type=BrokerTopicMetrics,name=BytesInPerSec has the attributes MeanRate and OneMinuteRate. I am confused about the attribute OneMinuteRate! It is for the last minutes or for the whole broker

Re: Kafka Zookeeper Connection

2018-02-24 Thread Soheil Pourbafrani
Hi and Thanks, Excuse me, The Kafka version is 0.11 and Zookeeper version is 3.4.10 I've check Zookeeper logs and sessions are expiring and renewing continuously there. I use the same Zookeeper cluster for Hadoop HA and it works well. I Answer the same question with more details in the following

Kafka Zookeeper Connection

2018-02-24 Thread Soheil Pourbafrani
In Kafka 0.11 server.log, it continuously logs [2018-02-24 10:38:11,178] WARN Client session timed out, have not heard from server in 4001ms for sessionid 0x361c65434f1000c (org.apache.zookeeper.ClientCnxn) [2018-02-24 10:38:11,178] INFO Client session timed out, have not heard from server in