Re: [VOTE] 0.8.2.0 Candidate 1

2015-01-15 Thread Jaikiran Pai
I just downloaded the Kafka binary and am trying this on my 32 bit JVM (Java 7)? Trying to start Zookeeper or Kafka server keeps failing with "Unrecognized VM option 'UseCompressedOops'": ./zookeeper-server-start.sh ../config/zookeeper.properties Unrecognized VM option 'UseCompressedOops' Error

Re: kafka brokers going down within 24 hrs

2015-01-15 Thread Harsha
Tousif, Which version of kafka and zookeeper are you using and whats your message size and jvm size that you allocated for kafka brokers. There is only 1 zookeeper node , if its a production cluster I recommend you to have quorum of zookeeper nodes. Both kafka & storm are heavy users

Re: [VOTE] 0.8.2.0 Candidate 1

2015-01-15 Thread scott@heroku
That opt has been the default for a long while now iirc, maybe it can be removed? Sent from my iPhone > On Jan 15, 2015, at 5:21 AM, Jaikiran Pai wrote: > > I just downloaded the Kafka binary and am trying this on my 32 bit JVM (Java > 7)? Trying to start Zookeeper or Kafka server keeps faili

Re: [VOTE] 0.8.2.0 Candidate 1

2015-01-15 Thread Jay Kreps
Yeah, good call on removing it. -Jay On Thu, Jan 15, 2015 at 6:39 AM, scott@heroku wrote: > That opt has been the default for a long while now iirc, maybe it can be > removed? > > Sent from my iPhone > > > On Jan 15, 2015, at 5:21 AM, Jaikiran Pai > wrote: > > > > I just downloaded the Kafka b

Re: Leadership rebalance causing drop of incoming messages

2015-01-15 Thread Joel Koshy
> Is leadership rebalance a safe operation? Yes - we use it routinely. For any partition, there should only be a brief (order of seconds) period of rejected messages as leaders move. When that happens the client should refresh metadata and discover the new leader. Are you using the Java producer?

Re: [VOTE] 0.8.2.0 Candidate 1

2015-01-15 Thread Jun Rao
Thanks for reporting this. I will remove that option in RC2. Jun On Thu, Jan 15, 2015 at 5:21 AM, Jaikiran Pai wrote: > I just downloaded the Kafka binary and am trying this on my 32 bit JVM > (Java 7)? Trying to start Zookeeper or Kafka server keeps failing with > "Unrecognized VM option 'UseC

Re: Production settings for JDK 7 + G1 GC

2015-01-15 Thread Jon Bringhurst
We're currently using JDK 8 update 5 with the following settings: -server -Xms4g -Xmx4g -XX:PermSize=96m -XX:MaxPermSize=96m -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+PrintTenuringDi

Re: Leadership rebalance causing drop of incoming messages

2015-01-15 Thread Allen Wang
We are using the scala producer. From producer side, we have seen a lot of error messages in producer during the time of incoming message drop: Produce request with correlation id 31616255 failed due to [trace_annotation,10]: kafka.common.NotLeaderForPartitionException And a few (far less than th

"java.io.IOException: Too many open files" error

2015-01-15 Thread Sa Li
Hi, all We test our production kafka, and getting such error [2015-01-15 19:03:45,057] ERROR Error in acceptor (kafka.network.Acceptor) java.io.IOException: Too many open files at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method) at sun.nio.ch.ServerSocketChannelImpl.accep

Re: "java.io.IOException: Too many open files" error

2015-01-15 Thread Gwen Shapira
You may find this article useful for troubleshooting and modifying TIME_WAIT: http://www.linuxbrigade.com/reduce-time_wait-socket-connections/ The line you have for increasing file limit is fine, but you may also need to increase the limit system wide: insert "fs.file-max = 10" in /etc/sysctl.

Re: Leadership rebalance causing drop of incoming messages

2015-01-15 Thread Allen Wang
Another kind of error messages is found in the kafka state change log after leadership rebalance: 2015-01-15 00:01:39,895 WARN kafka.utils.Logging$class:83 [kafka-request-handler-0] [warn] Broker 8 received invalid LeaderAndIsr request with correlation id 221 from controller 0 epoch 19 with an ol

Re: "java.io.IOException: Too many open files" error

2015-01-15 Thread István
Hi Sa Li, Depending on your system that configuration entry needs to be modified. The first parameter after the insert is the username what you use to run kafka. It might be your own username or something else, in the following example it is called kafkauser. On the top of that I also like to use

Re: Thread safety of Encoder implementations

2015-01-15 Thread Guozhang Wang
Liz, Could you paste your code for calling the producer send call here? Just realized in 0.7 there might be some calling pattern corner cases that cause concurrent access of the serializer. Also, I would recommend you to try out the new version of Kafka (0.8.x), in which each producer will only h

Re: Decrease the number of partitions for topic

2015-01-15 Thread Guozhang Wang
Decrease partition is not yet supported in the latest 0.8.2 release, but we are considering how it can be implemented in the later releases. Could you elaborate on your requirements for partition decrease? For example, are you OK to just delete the data on the removed partitions (e.g. if we decrea

Re: "java.io.IOException: Too many open files" error

2015-01-15 Thread Sa Li
Thanks for the reply, I have change the configuration and running to see if any errors come out. SL On Thu, Jan 15, 2015 at 3:34 PM, István wrote: > Hi Sa Li, > > Depending on your system that configuration entry needs to be modified. The > first parameter after the insert is the username what

Re: [VOTE] 0.8.2.0 Candidate 1

2015-01-15 Thread Manikumar Reddy
Also can we remove "delete.topic.enable" config property and enable topic deletion by default? On Jan 15, 2015 10:07 PM, "Jun Rao" wrote: > Thanks for reporting this. I will remove that option in RC2. > > Jun > > On Thu, Jan 15, 2015 at 5:21 AM, Jaikiran Pai > wrote: > > > I just downloaded the

Re: Leadership rebalance causing drop of incoming messages

2015-01-15 Thread Joel Koshy
Not sure what could be going on.. What version of the client and the broker are you on? Can you verify from the state change logs the time it took for leadership to move to the preferred leader? Were there long GCs in your brokers? Can you also look for zookeeper session expirations in your bro

Re: [VOTE] 0.8.2.0 Candidate 1

2015-01-15 Thread Joe Stein
I think that is a change of behavior that organizations may get burned on. Right now there is no delete data feature. If an operations teams upgrades to 0.8.2 and someone decides to delete a topic then there will be data loss. The organization may not have wanted that to happen. I would argue to no

Re: [VOTE] 0.8.2.0 Candidate 1

2015-01-15 Thread Jun Rao
Yes, I agree it's probably better not to enable "delete.topic.enable" by default. Thanks, Jun On Thu, Jan 15, 2015 at 6:29 PM, Joe Stein wrote: > I think that is a change of behavior that organizations may get burned on. > Right now there is no delete data feature. If an operations teams upgra

Re: [VOTE] 0.8.2.0 Candidate 1

2015-01-15 Thread Gwen Shapira
Would make sense to enable it after we have authorization feature and admins can control who can delete what. On Thu, Jan 15, 2015 at 6:32 PM, Jun Rao wrote: > Yes, I agree it's probably better not to enable "delete.topic.enable" by > default. > > Thanks, > > Jun > > On Thu, Jan 15, 2015 at 6:29

Re: kafka brokers going down within 24 hrs

2015-01-15 Thread Tousif
i'm using kafka 2.9.2-0.8.1.1 and zookeeper 3.4.6. i noticed that only one broker is going down. My message size is less thn 3 kb and KAFKA_HEAP_OPTS="-Xmx512M" and KAFKA_JVM_PERFORMANCE_OPTS="-server -XX:+UseCompressedOops -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -