Kafka in public maven repositories

2013-10-10 Thread Cheolwoo Choi
Why we can't find Kafka in public maven repositories ? What's obstacle to publish into public maven repositories ? Thanks, Choi

Best way to start / stop / restart a Consumer?

2013-10-10 Thread Tanguy tlrx
Hi all, In our application, we are currently starting a Kafka Consumer with the following lines of code: connector = Consumer.createJavaConsumerConnector(consumerConfig); streams = connector .createMessageStreams(map); Then, each KafkaStream is processed in a dedicated thread per topic and

Kafka startup, no broker partitions consumed by consumer thread

2013-10-10 Thread Viktor Kolodrevskiy
On our current project we want to have a single shell script that: first starts kafka with zookeeper and second strarts tomcat server with our webapp. We run kafka and tomcat on single machine, use kafka 0.8 We set num.partitions=4 in server.properties. In webapp we start 4 threads that do

Re: Best way to start / stop / restart a Consumer?

2013-10-10 Thread Jun Rao
Is that in 0.7 or 0.8? JMX won't allow a bean with the same name to be registered twice. Do you see 2 beans with similar names? What are the exact bean names? Thanks, Jun On Thu, Oct 10, 2013 at 2:42 AM, Tanguy tlrx tlrx@gmail.com wrote: Hi all, In our application, we are currently

Re: Kafka startup, no broker partitions consumed by consumer thread

2013-10-10 Thread Jun Rao
Could you try the latest code in the 0.8 branch? We recently fixed a consumer side issue (KAFKA-1030) that seems related. Thanks, Jun On Thu, Oct 10, 2013 at 6:36 AM, Viktor Kolodrevskiy viktor.kolodrevs...@gmail.com wrote: On our current project we want to have a single shell script that:

Re: Best way to start / stop / restart a Consumer?

2013-10-10 Thread Tanguy tlrx
It's in 0.8. The JMX names are not exactly the same, but I see 2 beans with similar names, something like: my_consumer_group-my_consumer-mytopic-my_consumer_hostname.thing.com-1381416134138-3573c8bf-7-FetchQueueSize -- Tanguy 2013/10/10 Jun Rao jun...@gmail.com Is that in 0.7 or 0.8? JMX

Re: Best way to start / stop / restart a Consumer?

2013-10-10 Thread Jun Rao
Each time we create a new consumer connector, we assign a random consumer id by default. You can try setting consumer.id to use a fixed consumer id. In any case, we probably should deregister those beans when shutting down the connector. Could you file a jira? Thanks, Jun On Thu, Oct 10, 2013

Re: PHP client for Kafka .8

2013-10-10 Thread Pete Laurina
Thanks guys. Since we have some time constraints we are going with a Java based REST endpoint within our already existing API to act as a proxy for the message. Since it's a low volume of messages coming from our PHP side to kafka we are willing to accept the additional overhead of doubling the

Re: Topic Fetch metadata in producer

2013-10-10 Thread Neha Narkhede
Do you see the following warn messages on the producer ? Fetching topic metadata with correlation id %d for topics [%s] from broker [%s] failed fetching topic metadata for topics [%s] from broker [%s] failed On the server side - 1. could you enable DEBUG on kafka.server.KafkaApis and see if

Anyone running kafka with a single broker in production? what about only 8GB ram?

2013-10-10 Thread S Ahmed
Is anyone out there running a single broker kafka setup? How about with only 8 GB RAM? I'm looking at one of the better dedicated server prodivers, and a 8GB server is pretty much what I want to spend at the moment, would it make sense going this route? This same server would also potentially be

Re: Anyone running kafka with a single broker in production? what about only 8GB ram?

2013-10-10 Thread Bruno D. Rodrigues
A 10/10/2013, às 23:14, S Ahmed sahmed1...@gmail.com escreveu: Is anyone out there running a single broker kafka setup? How about with only 8 GB RAM? I'm looking at one of the better dedicated server prodivers, and a 8GB server is pretty much what I want to spend at the moment, would it

Problem when follows the chapter 1.3 quick start in kafka documentation

2013-10-10 Thread wangxu
Hi, Following the _kafka documentation_ http://kafka.apache.org/documentation.html#quickstart, I succeeded in Step 1: Download the code, Step 2: Start the server and Step 3: Create a topic in three different terminals. While I tried Step 4: Send some messages, the problem happened, the

Kafka cannot produce message

2013-10-10 Thread Jiang Jacky
Hi, I run into kafka issue recently, when I try to produce a message, it gives me follow error [2013-10-11 00:30:26,740] INFO Fetching metadata from broker id:0,host:localhost,port:9092 with correlation id 47 for 1 topic(s) Set(my-replicated-topic) (kafka.client.ClientUtils$) [2013-10-11

Re: Kafka cannot produce message

2013-10-10 Thread Jiang Jacky
can anyone help me? Thanks a lot 2013/10/10 Jiang Jacky jiang0...@gmail.com Hi, I run into kafka issue recently, when I try to produce a message, it gives me follow error [2013-10-11 00:30:26,740] INFO Fetching metadata from broker id:0,host:localhost,port:9092 with correlation id 47 for 1

Re: Kafka cannot produce message

2013-10-10 Thread Neha Narkhede
Are you trying to produce these messages to a newly created topic? On Thu, Oct 10, 2013 at 6:15 PM, Jiang Jacky jiang0...@gmail.com wrote: can anyone help me? Thanks a lot 2013/10/10 Jiang Jacky jiang0...@gmail.com Hi, I run into kafka issue recently, when I try to produce a message, it

Re: Kafka cannot produce message

2013-10-10 Thread Jiang Jacky
yes, even I cannot create new topic, same error, leadernotavailable. My zookeeper and storm all are working very well, except of Kafka. 2013/10/10 Neha Narkhede neha.narkh...@gmail.com Are you trying to produce these messages to a newly created topic? On Thu, Oct 10, 2013 at 6:15 PM, Jiang

Re: Kafka cannot produce message

2013-10-10 Thread Jiang Jacky
Another thing need is my instance comes with very small memory, just 683M, I am not sure if it is related. I will try to use 8G memory instance. 2013/10/10 Jiang Jacky jiang0...@gmail.com yes, even I cannot create new topic, same error, leadernotavailable. My zookeeper and storm all are

Re: Hi, Can anyone tell me why I cannot produce any message to remote kafka server from my local machine

2013-10-10 Thread Jiang Jacky
did anyone experience same issue? can you share with me? Thanks a lot. 2013/10/7 Jun Rao jun...@gmail.com Kafka port is documented in http://kafka.apache.org/documentation.html#brokerconfigs Thanks, Jun On Sat, Oct 5, 2013 at 12:05 PM, Jiang Jacky jiang0...@gmail.com wrote: Hi, I

Re: Hi, Can anyone tell me why I cannot produce any message to remote kafka server from my local machine

2013-10-10 Thread Joseph Lawson
it may be that the broker is reporting its internal ip address to zookeeper which then may interfere with your ability to submit the the broker with a producer that isn't on AWS's network. you can make the broker report the public dns name instead of the internal host name which i believe it

Re: Hi, Can anyone tell me why I cannot produce any message to remote kafka server from my local machine

2013-10-10 Thread Joseph Lawson
another thing to note is that your brokers may be running on port 6667 instead of 9092. it appears that the default recently changed from 9092 to 6667 so make sure if you have firewall rules for 9092 that you specifically set the port setting in your configuration to what you expect. -Joe

Re: Kafka cannot produce message

2013-10-10 Thread Aniket Bhatnagar
Hi Jiang Just thinking out loud, it could be because Kafka can't connect to Zookeeper. Can you check Kafka logs to validate the same? On 11 October 2013 08:22, Jiang Jacky jiang0...@gmail.com wrote: Hi, Everyone, I use the larger memory instance to replace that small one, for now, I can

Kafka server error

2013-10-10 Thread Jiang Jacky
*Hi, Guys,* *I am currently running into the kafka server issue. * *I have a 5 nodes cluster and zookeeper running without any problem. when I manually boot each node by using* *JMX_PORT=9997 bin/kafka-server-start.sh config/server-x.properties * command. *The scenario is:* *Then, first node, it

Re: Kafka cannot produce message

2013-10-10 Thread Jiang Jacky
Hi, Aniket Thanks for your reply I checked the log from /tmp/kafka-logs/ There are some empty files, likes .index, .log. I cannot find any useful information there. However, i found some other interesting things, I have posted here

Re: Kafka cannot produce message

2013-10-10 Thread Jun Rao
Any error in the controller and state-change log? Thanks, Jun On Thu, Oct 10, 2013 at 9:38 PM, Jiang Jacky jiang0...@gmail.com wrote: Hi, Aniket Thanks for your reply I checked the log from /tmp/kafka-logs/ There are some empty files, likes .index,

Re: Kafka server error

2013-10-10 Thread Jiang Jacky
Yes, it just says INFO Reconnect due to socket error But why and how come it comes? my zookeeper and storm have no any problem to collaborate each other. 2013/10/11 Jun Rao jun...@gmail.com The log you posted for the second broker didn't say why it crashed. Is that all you got? Thanks,

Re: Hi, Can anyone tell me why I cannot produce any message to remote kafka server from my local machine

2013-10-10 Thread Jiang Jacky
Hi, Thanks Joe I have disabled the firewall, but I did not tried that again, I changed another way by using Netty sending the socket package to kafka server, then it will produce in the local. But recently I suddenly ran into below issue, can you have a look?

Re: Kafka cannot produce message

2013-10-10 Thread Jiang Jacky
Thanks Jun Rao Where can I find those logs? 2013/10/11 Jun Rao jun...@gmail.com Any error in the controller and state-change log? Thanks, Jun On Thu, Oct 10, 2013 at 9:38 PM, Jiang Jacky jiang0...@gmail.com wrote: Hi, Aniket Thanks for your reply I checked the log from

Re: Kafka server error

2013-10-10 Thread Jun Rao
Is that reproducible? Thanks, Jun On Thu, Oct 10, 2013 at 9:54 PM, Jiang Jacky jiang0...@gmail.com wrote: Yes, it just says INFO Reconnect due to socket error But why and how come it comes? my zookeeper and storm have no any problem to collaborate each other. 2013/10/11 Jun Rao

Re: Kafka cannot produce message

2013-10-10 Thread Jun Rao
under logs/. Thanks, Jun On Thu, Oct 10, 2013 at 9:56 PM, Jiang Jacky jiang0...@gmail.com wrote: Thanks Jun Rao Where can I find those logs? 2013/10/11 Jun Rao jun...@gmail.com Any error in the controller and state-change log? Thanks, Jun On Thu, Oct 10, 2013 at 9:38 PM,

Re: Kafka server error

2013-10-10 Thread Jiang Jacky
Yes, everytime, I send message, it throws that error. 2013/10/11 Jun Rao jun...@gmail.com Is that reproducible? Thanks, Jun On Thu, Oct 10, 2013 at 9:54 PM, Jiang Jacky jiang0...@gmail.com wrote: Yes, it just says INFO Reconnect due to socket error But why and how come it comes? my

Re: Kafka server error

2013-10-10 Thread Jiang Jacky
Sorry, even I don't send message, it shows up that message about every 1 minute 2013/10/11 Jiang Jacky jiang0...@gmail.com Yes, everytime, I send message, it throws that error. 2013/10/11 Jun Rao jun...@gmail.com Is that reproducible? Thanks, Jun On Thu, Oct 10, 2013 at 9:54 PM,

Re: Kafka server error

2013-10-10 Thread Jiang Jacky
no, it is not reproducible. Thank you. 2013/10/11 Jun Rao jun...@gmail.com I meant the broker crash. Is that reproducible? Thanks, Jun On Thu, Oct 10, 2013 at 10:10 PM, Jiang Jacky jiang0...@gmail.com wrote: Yes, everytime, I send message, it throws that error. 2013/10/11 Jun

Re: kafka.common.UnknownTopicOrPartitionException

2013-10-10 Thread Monika Garg
Hi Snehalata state-change log are automatically created if you are using kafka-0.8 version. On Wed, Oct 9, 2013 at 10:42 AM, Snehalata Nagaje snehalata.nag...@harbingergroup.com wrote: Actually state-change log setting is not on. So could not find the state-change log.

Is there a way to pull out kafka metadata from zookeeper?

2013-10-10 Thread hsy...@gmail.com
Hi guys, I'm trying to maintain a bunch of simple kafka consumer to consume messages from brokers. I know there is a way to send TopicMetadataRequest to broker and get the response from the broker. But you have to specify the broker list to query the information. But broker might not be available