Re: How to make an async producer with c++ libkafka?

2014-01-25 Thread Magnus Edenhill
librdkafka provides an async interface: https://github.com/edenhill/librdkafka/blob/master/rdkafka.h#L709 It is written in C but is used by C++ applications, a proper C++ interface will be available shortly. Regards, Magnus 2014/1/26 Zicfy Hsu > It does not, please see Connection.cc. > > > On

Re: How to make an async producer with c++ libkafka?

2014-01-25 Thread Zicfy Hsu
It does not, please see Connection.cc. On Sat, Jan 25, 2014 at 5:18 AM, Michael Cyrulnik wrote: > > Does libkafka (c++) allow one to make an async producer? If so, how? > > Client *client; > client = new Client('127.0.0.1', 9092); > client->sendProduceRequest(new ProduceRequest(correlationId,

RE: Using Kafka on Windows - file path problems

2014-01-25 Thread Vjeran Marcinko
Ugh, stupid me, I could see what was the problem from mentioned logged lines. One should escape the path if using \ char, since it interprets the \tmp as tab followed by "mp" so using: \\tmp\\kafka-logs work, and I guess that its normal behavior for java.util.Properties.load() method. -Vjeran --

RE: Shell scripts for Windows corrected

2014-01-25 Thread Vjeran Marcinko
OK, but can I move windows scripts to bin directory, same as unix scripts? It's somewhat important because referencing base dir depends upon the location of the script files, and also, its expected dir, and maintaining the scripts would be much better than since it would be obvious one need to cha

RE: Using Kafka on Windows - file path problems

2014-01-25 Thread Vjeran Marcinko
Even if in that one case the thing would work, it would be best if any correct windows file path would work. I checked again, and it behaves as I've written. In case when one specifies /tmp/kafka-logs, it works, and during startup one log line says: [2014-01-25 18:04:08,335] INFO Property log.dir

Re: Shell scripts for Windows corrected

2014-01-25 Thread Jun Rao
Could you submit a patch to fix the windows script in trunk? Thanks, Jun On Sat, Jan 25, 2014 at 1:18 AM, Vjeran Marcinko < vjeran.marci...@email.t-com.hr> wrote: > Hi, > > > > Is there some reason that shell scripts for Windows are separated into its > own dir instead being placed in /bin wit

Re: Using Kafka on Windows - file path problems

2014-01-25 Thread Jun Rao
It sounds like \tmp\kafka-logs should work since that's what File.getParent() returns. Not sure why you can't use that to create the file. Thanks, Jun On Sat, Jan 25, 2014 at 12:43 AM, Vjeran Marcinko < vjeran.marci...@email.t-com.hr> wrote: > Hi, > > I have a problem going through start guide

Shell scripts for Windows corrected

2014-01-25 Thread Vjeran Marcinko
Hi, Is there some reason that shell scripts for Windows are separated into its own dir instead being placed in /bin with other Unix ones? Most of products out there have both types of scripts in bin dir. One mroe thing, windows scripts need some corrections to be able to call them from

Using Kafka on Windows - file path problems

2014-01-25 Thread Vjeran Marcinko
Hi, I have a problem going through start guide on Windows. Basically what I found are file path problems it seems: If I try to set Kafka log dir path in server.properties using Windows file separator, such as D:\tmp\kafka-logs, or even \tmp\kafka-logs , then kafka cannot be started, since it thro