Re: messages lost

2015-01-02 Thread Timothy Chen
What's your configured required.acks? And also are you waiting for all your messages to be acknowledged as well? The new producer returns futures back, but you still need to wait for the futures to complete. Tim On Fri, Jan 2, 2015 at 9:54 AM, Sa Li wrote: > Hi, all > > We are sending the messa

Re: Delete topic API in 0.8.2

2015-01-23 Thread Timothy Chen
I believe that's the only way it's supported from the CLI. Delete topic actually fully removes the topic from the cluster, which also includes cleaning the logs and removing it from zookeeper (once it is fully deleted). Tim On Fri, Jan 23, 2015 at 12:13 PM, Sumit Rangwala wrote: > I am trying t

Re: Problem deleting topics in 0.8.2?

2015-03-04 Thread Timothy Chen
Hi Jeff, The controller should have a Topic deletion thread running coordinating the delete in the cluster, and the progress should be logged to the controller log. Can you look at the controller log to see what's going on? Tim On Wed, Mar 4, 2015 at 10:28 AM, Jeff Schroeder wrote: > So I've g

Kafka 0.8 w/o ZK

2013-05-14 Thread Timothy Chen
Hi all, I see that Kafka 0.8 is no longer depends on ZK according to the notes, but I see that at startup it is still looks for Zk to be up. I wonder is there a way to run Kafka without Zk in 0.8? Thanks, Tim

Partitioning and scale

2013-05-22 Thread Timothy Chen
Hi, I'm currently trying to understand how Kafka (0.8) can scale with our usage pattern and how to setup the partitioning. We want to route the same messages belonging to the same id to the same queue, so its consumer will able to consume all the messages of that id. My questions: - From my un

Re: Partitioning and scale

2013-05-22 Thread Timothy Chen
example that you can follow - > > https://cwiki.apache.org/confluence/display/KAFKA/0.8.0+SimpleConsumer+Example > > Thanks, > Neha > > > On Wed, May 22, 2013 at 12:37 PM, Chris Curtin >wrote: > > > Hi Tim, > > > > > > On Wed, May 22, 2013 at 3:25

Re: Partitioning and scale

2013-05-23 Thread Timothy Chen
titions to the new broker without any downtime. > > Thanks, > Neha > > > On Wed, May 22, 2013 at 2:20 PM, Timothy Chen wrote: > > > Hi Neha/Chris, > > > > Thanks for the reply, so if I set a fixed number of partitions and just > add > > brokers to

Custom partitioner

2013-05-31 Thread Timothy Chen
Hi, I'm trying to add my own custom partitioner and saw the example in the 0.8 producer example in the wiki. However, when I set a broker list and set the custom partitioner class name I did in the client, I see this error: Partitioner cannot be used when broker list is set Does this means a

Re: Using Kafka for "data" messages

2013-06-13 Thread Timothy Chen
Also since you're going to be creating a topic per user, the number of concurrent users will also be a concern to Kafka as it doesn't like massive amounts of topics. Tim On Thu, Jun 13, 2013 at 10:47 AM, Josh Foure wrote: > Hi Mahendra, I think that is where it gets a little tricky. I think i

Re: C# client for kafka 0.8

2013-06-18 Thread Timothy Chen
Hi Robert, The most recent one that I know of is the C# client that ExactTarget folks did, however not all calls are up to the 0.8 protocol so it doesn't completely work. I have a slightly more cleaned up version here https://github.com/tnachen/kafka/tree/feature/et-develop-0.8 It will be great

Re: Kafka 0.8 on Windows issues

2013-06-27 Thread Timothy Chen
Interesting, I logged into your vm and i can repro with the console bat. I never tried the console bat, and just wrote my own producer / consumer using the java API. I'll try copying it over to the VM and see if it differs. Tim Sent from my iPhone On Jun 27, 2013, at 10:12 AM, Denny Lee wrote

Re: Changing the number of partitions after a topic is created

2013-07-08 Thread Timothy Chen
Hi Jun, I wonder when will the tool be available? We're very interested in changing the number of partitions for a topic after creation too. Thanks! Tim On Thu, Jul 4, 2013 at 9:06 PM, Jun Rao wrote: > Currently, once a topic is created, the number of partitions can't be > changed. We are wo

Error when processing messages in Windows

2013-07-09 Thread Timothy Chen
Hi all, I've tried pushing a large amount of messages into Kafka on Windows, and got the following error: Caused by: java.io.IOException: The requested operation cannot be performed on a file with a user-mapped section open at java.io.RandomAccessFile.setLength(Native Method) at

Re: Kafka 08 clients

2013-08-10 Thread Timothy Chen
That's definitely means it's not up to date to the protocol, I'm tried the java client and it was working with latest 0.8 api. Not sure about any other languages. Tim On Sat, Aug 10, 2013 at 2:55 PM, Mark wrote: > Are all Kafka clients working with the latest version of Kafka? > > I tried the

Correlation id

2013-08-19 Thread Timothy Chen
Hi, This is probably a very obvious questoin, but I cannot find the answer for this. What does the correlation id mean in a producer request? Tim

Re: Correlation id

2013-08-20 Thread Timothy Chen
requests across producer and broker logs. > > > On Mon, Aug 19, 2013 at 11:01 PM, Timothy Chen wrote: > > > Hi, > > > > This is probably a very obvious questoin, but I cannot find the answer > for > > this. > > > > What does the correlation id mean in a producer request? > > > > Tim > > >

Re: Patch for mmap + windows

2013-08-21 Thread Timothy Chen
Hi Jay, I'm planning to test run Kafka on Windows in our test environments evaluating if it's suitable for production usage. I can provide feedback with the patch how well it works and if we encounter any functional or perf problems. Tim On Wed, Aug 21, 2013 at 2:54 PM, Jay Kreps wrote: >

Re: Patch for mmap + windows

2013-09-09 Thread Timothy Chen
ould be great! > > -Jay > > > On Wed, Aug 21, 2013 at 3:13 PM, Timothy Chen wrote: > > > Hi Jay, > > > > I'm planning to test run Kafka on Windows in our test environments > > evaluating if it's suitable for production usage. > > > >

Re: Patch for mmap + windows

2013-09-09 Thread Timothy Chen
we want to do these in 0.8? The first patch was a little > >> > involved but I think it would be good to have windows support in 0.8 > >>and > >> it > >> > sounds like Tim is able to get things working after these changes. > >> > > >> &g

Re: Patch for mmap + windows

2013-09-09 Thread Timothy Chen
gt; > >>> On Mon, Sep 9, 2013 at 10:48 AM, Jay Kreps > wrote: > >>> > >>>> So guys, do we want to do these in 0.8? The first patch was a little > >>>> involved but I think it would be good to have windows support in 0.8 > >>>

Re: Broker bind address versus published hostname in ZooKeeper

2013-10-17 Thread Timothy Chen
Hi Roger, That's exactly what I need in my end, and actually internally created a new property called zkHost.name to publish a different host to zk. This is also needed for deploying Kafka into Azure. I also created zkHost.port since the internal and external ports that's exposed might be differe

Re: Broker bind address versus published hostname in ZooKeeper

2013-10-24 Thread Timothy Chen
> > > > Thanks, > > > > Jun > > > > > > On Thu, Oct 17, 2013 at 3:20 PM, Timothy Chen wrote: > > > > > Hi Roger, > > > > > > That's exactly what I need in my end, and actually internally created a > > new > > &

Re: Loggly's use of Kafka on AWS

2013-12-03 Thread Timothy Chen
Hi Philip, So I wonder if you guys hit disk perf problems with EBS? It seems quite common in the past but I haven't tried recently. Also can you share how you guys deployed zookeeper in AWS so that a qurom is always available? Tim Sent from my iPhone > On Dec 2, 2013, at 5:15 PM, Steve Morin

Re: Updated kafka client (producer and consumer)

2013-12-05 Thread Timothy Chen
>From the roadmap they published it looks like pipelining as part of the client rewrite is happening post 0.8. Tim On Thu, Dec 5, 2013 at 3:52 PM, Tom Brown wrote: > In our environment we use currently use Kafka 0.7.1. > > The core features I am looking for in a client are this: > > 1. Provide

Re: How does Cloudera manager Collects Kafka Metrics

2016-03-25 Thread Timothy Chen
That's all information available from the jmx endpoints in Kafka. Tim On Fri, Mar 25, 2016 at 1:21 PM, yeshwanth kumar wrote: > can someone explain, how Cloudera manager Collects Kafka Metrics, such as > TotalMessages in a Topic, Total Bytes read and written from and into Kafka. > > > please let

Re: Kafka on DC/OS

2016-07-24 Thread Timothy Chen
Hi Abhimanyu, What errors are you seeing? And which version of DCOS are you running as well? Tim On Fri, Jul 22, 2016 at 6:14 AM, Chakrabarty, Abhimanyu wrote: > I had a question regarding Kafka on DC/OS because whenever we try to install > the Kafka package it always shows that it is deploying

Re: Need help for kafka on windows

2014-01-14 Thread Timothy Chen
Hi Sripada, Unfortunately I can't provide a code fix, but it's an easy fix actually. Basically the path that is trying to look for kafka-run-class.bat is wrong as it expects that file to be from the current window's folder. You can either cd into the parent and run it or fix the script. Tim O

Re: Help in setting up Kafka cluster

2014-03-26 Thread Timothy Chen
Hi Roy, I wonder if you were able to start the broker following the steps here: http://kafka.apache.org/documentation.html#quickstart That page also shows you how to create a topic and send/consume messages using the console producer/consumer. Let us know if you run into any problems, Tim On

Re: NullPointerException in broker on notification of ZK session end

2014-04-02 Thread Timothy Chen
Hi Clark, What version of Kafka are you running this from? Thanks, Tim On Wed, Apr 2, 2014 at 3:49 PM, Clark Breyman wrote: > I'm seeing a lot of this in my logs on a non-controller broker: > > 2014-04-02 15:42:23,078] ERROR Error handling event ZkEvent[New session > event sent to > kafka.co

Re: NullPointerException in broker on notification of ZK session end

2014-04-02 Thread Timothy Chen
e we're calling onControllerResignation assuming it's the controller while the broker might be just re-establishing zookeeper session. I'll file a jira and fix this. Tim On Wed, Apr 2, 2014 at 4:00 PM, Clark Breyman wrote: > Hey Tim. Small world :). > > Kafka 0.8.1_2.10 > > > > &g

Re: Too many replicas after partition reassignment

2014-04-21 Thread Timothy Chen
Hi Ryan, Also KAFKA-1317 should be fixed in both trunk and latest 0.8.1 branch, are you running with either or just with one of the previous released versions? Tim On Mon, Apr 21, 2014 at 5:00 PM, Guozhang Wang wrote: > Hi Ryan, > > Did you see any error logs on the new controller's controller

Re: Kafka Performance Tuning

2014-04-24 Thread Timothy Chen
Hi Yashika, No logs in broker log is not normal, can you verify if you turned off logging in your log4j properties file? If it is please enable it and try again, and see what is in the logs. Tim On Thu, Apr 24, 2014 at 10:53 PM, Yashika Gupta wrote: > Jun, > > I am using Kafka 2.8.0- 0.8.0 ver

Re: New to Kafka: ZooKeeper and Client

2014-04-29 Thread Timothy Chen
Hi Chris, Kafka producer doesn't require zookeeper anymore, so you can simply connect to one of the brokers directly. Tim On Tue, Apr 29, 2014 at 9:23 AM, Chris Helck wrote: > I have a few newbie questions. I need to create a Producer that sends > messages to Kafka brokers. > > Does a machine

Re: Please add Perl client on your wiki

2014-04-29 Thread Timothy Chen
Done, let me know if you want more changes. Tim On Tue, Apr 29, 2014 at 1:54 PM, Sergiy Zuban wrote: > Could someone please update Perl client information at > https://cwiki.apache.org/confluence/display/KAFKA/Clients#Clients-Perl > > 1. GZIP and Snappy compression supported > 2. Update formatt

Re: why kafka producer api use cpu so high?

2014-05-11 Thread Timothy Chen
What is your compression configuration for your producer? One of the biggest CPU source for the producer is doing compression and also checksuming. Tim On Sun, May 11, 2014 at 12:24 AM, wrote: > I write a very simple code , like this : > public class LogProducer { > > private Producer inne

Re: CSharp librari and Producer Closing socket for because of error (kafka.network.Processor),java.nio.BufferUnderflowException

2014-05-14 Thread Timothy Chen
The C# client you're using only supports 0.7 Kafka, where 0.8 kafka is not backward compatible APIs anymore. If you want to use the latest Kafka you'll have to change the binary protocol yourself, or work with one of the other folks that has mentioend about .NET client in the mailing list. Tim O

Re: how to know kafka producer api status

2014-05-16 Thread Timothy Chen
It typically throws a exception in the end of the sync producer cannot deliver your message. In the case where there is a IOException or similiar exceptions that the Broker cannot deal with, I believe it will try to return UnknownError response which will then throw in the producer. In cases wher

Re: New consumer APIs

2014-05-16 Thread Timothy Chen
Also going to add that I know a per stream commit is a strong requirement for folks I know using Kafka, and seen custom code done just to do so. Tim > On May 9, 2014, at 1:19 PM, Eric Sammer wrote: > > All: > > I've been going over the new consumer APIs and it seems like we're > squishing a l

Re: New consumer APIs

2014-05-16 Thread Timothy Chen
uot;per stream commit", do you mean a per partition commit like this API - > > public OffsetMetadata commit(Map offsets); > > This API allows the consumer to commit the specified offsets only for > selected partitions. > > Thanks, > Neha > > > On Thu, May 15,

Re: Java API to list topics and partitions

2014-05-20 Thread Timothy Chen
There is a Scala API. You can take a look at TopicCommand.scala as kafka-topics.sh simply calls that class. Tim On Tue, May 20, 2014 at 3:41 PM, Saurabh Agarwal (BLOOMBERG/ 731 LEX -) wrote: > Hi, > > Is there java API in kafka to list topics and partitions in the kafka broker? > Thanks, > Saura

Re: Data loss detection

2014-06-03 Thread Timothy Chen
Hi Maung, If your required.acks is 1 then the producer only ensures that one broker receives the data before it's sucessfully returned to the client. Therefore if the broker crashes and lost all the data then you lose data, or similarly it can happen even before the data is fsynced. To ensure th

Re: Data loss detection

2014-06-03 Thread Timothy Chen
> Since replication factor is zero, can we use ack other than 1? > > Maung > > On Jun 3, 2014, at 3:00 PM, Timothy Chen wrote: > >> Hi Maung, >> >> If your required.acks is 1 then the producer only ensures that one >> broker receives the data before it&#

Re: Building Kafka on Mac OS X

2014-06-16 Thread Timothy Chen
What output was it stuck on? Tim On Mon, Jun 16, 2014 at 6:39 PM, Jorge Marizan wrote: > Hi team, I’m a newcomer to Kafka, but I’m having some troubles trying to get > it to run on OS X. > Basically building Kafka on OS X with 'gradlew jar’ gets stuck forever > without any progress (Indeed I

Re: Building Kafka on Mac OS X

2014-06-16 Thread Timothy Chen
Can you try running it in debug mode? (./gradlew jar -d) Tim On Mon, Jun 16, 2014 at 8:44 PM, Jorge Marizan wrote: > It just hangs there without any output at all. > > Jorge. > > On Jun 16, 2014, at 11:27 PM, Timothy Chen wrote: > >> What output was it stuck on? >&g

Re: Building Kafka on Mac OS X

2014-06-17 Thread Timothy Chen
contrib:jar >> :core:compileJava UP-TO-DATE >> :core:compileScala >> >> On Jun 17, 2014, at 12:46 AM, Steve Morin wrote: >> >>> Have seen if you have a write with zero data it will hang >>> >>>> On Jun 16, 2014, at 21:02, Timothy Che

Re: Building Kafka on Mac OS X

2014-06-17 Thread Timothy Chen
t;> On Jun 17, 2014, at 8:54 PM, Timothy Chen wrote: >> >> What's the last line it's stuck on with debug flag on? >> >> Tim >> >>> On Tue, Jun 17, 2014 at 4:46 PM, Jorge Marizan >>> wrote: >>> I almost got it to work but s

Re: Building Kafka on Mac OS X

2014-06-17 Thread Timothy Chen
l the compile job. >> >> Jorge. >> >> On Jun 17, 2014, at 11:45 PM, Timothy Chen wrote: >> >>> Not sure what's wrong but I'm guessing there probably can be a gradle lock >>> somewhere. >>> >>> Is there other gradle pr

Re: Building Kafka on Mac OS X

2014-06-17 Thread Timothy Chen
rified with ps aux and there is no Gradle processes left >> behind when I cancel the compile job. >> >> Jorge. >> >> On Jun 17, 2014, at 11:45 PM, Timothy Chen wrote: >> >>> Not sure what's wrong but I'm guessing there probably can

Re: delete topic ?

2014-06-18 Thread Timothy Chen
Yes the existing delete topic command just cleans up the topic entry in zk, but not really deleting the topic from the cluster. I have a patch that enables kafka-topics.sh to delete topic but not sure if it's merged to trunk. Tim > On Jun 18, 2014, at 1:39 PM, "hsy...@gmail.com" wrote: > > I

Re: Improving the Kafka client ecosystem

2014-07-19 Thread Timothy Chen
The certified client test suite really will benefit all the client developers, as writing a Kafka client often is not just talking protocol but to be able to handle correctly all the cases, errors and situations, but also performance. From my experience writing a C# client definitely feel that a

Re: delete topic ?

2014-08-06 Thread Timothy Chen
Is this the latest master? I've added the delete option in trunk, but it's not in any release yet. We used to have the delete option flag but I believe we removed it that's why the documentation difference. Tim On Wed, Aug 6, 2014 at 10:53 PM, Shlomi Hazan wrote: > if the answer is pointing out

Re: delete topic ?

2014-08-06 Thread Timothy Chen
ut > interested in hearing your thoughts. > > Gwen > > On Wed, Aug 6, 2014 at 11:01 PM, Timothy Chen wrote: >> Is this the latest master? I've added the delete option in trunk, but >> it's not in any release yet. >> >> We used to have the delete op

Re: delete topic ?

2014-08-07 Thread Timothy Chen
0.8.1.1 cluster? Or >> does the cluster also have to be running trunk? (I'm guessing it does :)). >> >> I have some topics I'd like to delete, but don't want to wait for 0.8.2 >> (but will probably have to, I'm guessing). >> >> Jason >> &g