Question on running Kafka Producer in Java environment

2015-01-16 Thread Su She
Hello Everyone, Thank you for the time and help. I had the Kafka Producer running, but am having some trouble now. 1) Using Maven, I wrote a Kafka Producer similar to the one found here: https://github.com/pppsunil/HelloKafka/blob/master/src/main/java/com/spnotes/kafka/HelloKafkaProducer.java 2)

Jar files needed to run in Java environment (without Maven)

2015-01-19 Thread Su She
Hello All, I posted a question last week ( http://mail-archives.apache.org/mod_mbox/kafka-users/201501.mbox/browser) but I'm not able to respond to the thread for some reason? The suggestion on the last post was that I am missing some jar files in my classpath, but I am using the following jar fi

java.nio.channels.ClosedChannelException...Firewall Issue?

2015-01-19 Thread Su She
Hello Everyone, Thank you for the help! Preface: I've created producers/consumers before and they have worked. I have also made consumers/producers using java programs, but they have all been locally. 1) I have a Zookeeper/Kafka Server running on an EC2 instance called "A" 2) I started the Zook

Re: java.nio.channels.ClosedChannelException...Firewall Issue?

2015-01-19 Thread Su She
ic.ip.of.A 9092 > > > -Jaikiran > > On Tuesday 20 January 2015 07:16 AM, Su She wrote: > >> Hello Everyone, >> >> Thank you for the help! >> >> Preface: I've created producers/consumers before and they have worked. I >> have also made cons

How to run Kafka Producer in Java environment? How to set mainClass in pom file in EC2 instance?

2015-01-20 Thread Su She
Hello Everyone, Sorry for the duplicate post, I hadn't subscribed to the list yet, so I couldn't reply to suggestions. That has been fixed now. 1) Using Maven, I wrote a Kafka Producer similar to the one found here: https://github.com/pppsunil/HelloKafka/blob/master/src/main/java/com/spnotes/kafk

Can I run Kafka Producer in BG and then run a program that outputs to the console?

2015-01-20 Thread Su She
Hello Everyone, Sorry for asking multiple questions, but I am currently trying another approach to run a kafka producer. 1) I started the kafka console producer as mentioned here in the background (just added a & to the end of the producer script) : http://kafka.apache.org/documentation.html#intr

Re: Can I run Kafka Producer in BG and then run a program that outputs to the console?

2015-01-20 Thread Su She
ww.twitter.com/allthingshadoop> > / > > On Tue, Jan 20, 2015 at 3:44 PM, Su She wrote: > > > Hello Everyone, > > > > Sorry for asking multiple questions, but I am currently trying another > > approach to run a kafka producer. > > > > 1) I started t

Re: How to run Kafka Producer in Java environment? How to set mainClass in pom file in EC2 instance?

2015-01-20 Thread Su She
ork. Alternatively, you can put the jar on the class path and then > specify the exact class you want to run > > java -cp jar.with.dependencies.jar com.spnotes.kafka.HelloKafkaProducer > > > On Tue, Jan 20, 2015 at 11:43 AM, Su She wrote: > > > Hello Everyone,

Re: Can I run Kafka Producer in BG and then run a program that outputs to the console?

2015-01-20 Thread Su She
ng_the_stuff | kafkacat -b mybroker -t mytopic > > That will produce one kafka message to topic 'mytopic' for each line of > input. > See kafkacat -h for the full range of options (e.g., delimiter, specific > partition, etc). > > Hope that helps, > Magnus > > 20

Re: Can I run Kafka Producer in BG and then run a program that outputs to the console?

2015-01-20 Thread Su She
Ahh okay got it. Thank you Magnus! On Tue, Jan 20, 2015 at 1:55 PM, Magnus Edenhill wrote: > If you pipe your java program to kafkacat then the java program's stdout > (output) > will be directed to kafkacat's stdin (input). > > java program | kafkacat > > 20

MQTT and Kafka Integration

2015-01-26 Thread Su She
Hello Everyone, I recently watched this video by Tim Kellogg: https://www.youtube.com/watch?v=VoTclkxSago. 1) Has anyone integrated MQTT and Kafka? If so how did the architecture look like? I am confused as to how to get messages from the MQTT broker to the Kafka broker. 2) Has anyone used this

Consuming Kafka Messages Inside of EC2 Instances

2015-01-28 Thread Su She
Hello All, I have set up a cluster of EC2 instances using this method: http://blogs.aws.amazon.com/bigdata/post/Tx2D0J7QOVRJBRX/Deploying-Cloudera-s-Enterprise-Data-Hub-on-AWS As you can see the instances are w/in a private subnet. I was wondering if anyone has any advice on how I can set up a K

Re: Consuming Kafka Messages Inside of EC2 Instances

2015-01-28 Thread Su She
ion correctly... You're asking how do you > > establish connectivity to an instance in a private subnet from the > outside > > world? Are you thinking in terms of zookeeper or just general aws > network > > connectivity? > > > > On Wed, Jan 28, 2015 at 11

Re: Consuming Kafka Messages Inside of EC2 Instances

2015-01-29 Thread Su She
okers > ? > > > > On Wed, Jan 28, 2015 at 10:56 PM, Su She wrote: > > > Thank you Dillian and Guozhang for the responses. > > > > Yes, Dillian you are understanding my issue correctly. I am not sure what > > the best approach to this is...I'm not su

Re: Consuming Kafka Messages Inside of EC2 Instances

2015-01-29 Thread Su She
org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:116) at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78) On Thu, Jan 29, 2015 at 9:44 AM, Su She wrote: > Thank you Guozhang for an updated link. > > I read the answer for "Why can't my consumers/produ

Can't start Zookeeper on a EC2 instance in a public subnet

2015-01-29 Thread Su She
Hello Everyone, I previously had my EC2 instances in a private subnet, but I spun up a new cluster in a public subnet. However, it seems to have taken me a step back as now I can't even start the zookeeper. I am getting this error: ERROR Unexpected exception, exiting abnormally (org.apache.zookee

Re: Consuming Kafka Messages Inside of EC2 Instances

2015-01-29 Thread Su She
Engagement Engineer > mobile: 609.577.1600 | linkedin <http://www.linkedin.com/in/nattyice> > > > On Thu, Jan 29, 2015 at 11:47 AM, Su She wrote: > > > I tried a new approach and have started ec2 instances in a public subnet > > rather than a private subnet. How

Re: Consuming Kafka Messages Inside of EC2 Instances

2015-01-29 Thread Su She
an either > reconfigure your Zookeeper in CM, or stop the service, and start up a > Zookeeper manually to try to bind to the public IPs. > > Thanks, > Natty > > Jonathan "Natty" Natkins > StreamSets | Customer Engagement Engineer > mobile: 609.577.1600 | linkedin

Re: Consuming Kafka Messages Inside of EC2 Instances

2015-01-29 Thread Su She
: > Responses inline > > Jonathan "Natty" Natkins > StreamSets | Customer Engagement Engineer > mobile: 609.577.1600 | linkedin <http://www.linkedin.com/in/nattyice> > > > On Thu, Jan 29, 2015 at 12:47 PM, Su She wrote: > > > Thanks Jonathon! > > > &

Re: Kafka on ec2

2015-02-09 Thread Su She
If you mean setting up Kafka on ec2: https://www.youtube.com/watch?v=ArUHr3Czx-8 the commands may differ depending on which type of ec2 instance you are using. Also: http://kafka.apache.org/documentation.html#introduction On Mon, Feb 9, 2015 at 4:53 AM, Sharath N wrote: > Hi, any one please h

What ports does a Kafka Producer/Consumer use other than 2180's and 9090's?

2015-02-10 Thread Su She
I was looking at the documentation and I see that the broker/server/consumer listen to ports 2181 and 9092, but can be configured for other ports in that range. Are there any other ports that a kafka producer/consumer use in the back-end to publish/consume messages? Thank you!

Re: What ports does a Kafka Producer/Consumer use other than 2180's and 9090's?

2015-02-10 Thread Su She
Okay got it, thanks! On Tue, Feb 10, 2015 at 12:45 PM, Zijing Guo wrote: > The kafka's port can be configured through server.properties, and if you > use kafka's zk, then you can modify the zookeeper.properties file, for > clientPort. > > On Tuesday, February

Re: java.nio.channels.ClosedChannelException

2015-02-24 Thread Su She
I usually got that exception if a) there is a firewall issue b) you are trying to consume messages from another node and have not set your advertised host name to the public ip address in the kafka server settings. On Tue, Feb 24, 2015 at 12:07 PM, alexey yakubovich < alexe...@yahoo.com.invali

Keeping Zookeeper and Kafka Server Up

2015-06-16 Thread Su She
Hello Everyone, I'm wondering how to keep Zookeeper and Kafka Server up even when my SSH (using putty) becomes inactive. I've tried running it in the background (using &), but it seems like it stops sometimes after a couple hours or so and I'll have to restart zookeeper and/or the kafka server. T

Re: Keeping Zookeeper and Kafka Server Up

2015-06-16 Thread Su She
gt; *GitHub*: https://github.com/terryjbates > *Linkedin*: http://www.linkedin.com/in/terryjbates/ > > > On Tue, Jun 16, 2015 at 3:30 PM, Mike Bridge wrote: > >> Have you tried using "nohup" >> >> nohup bin/zookeeper-server-start.sh config/zooke

Trying to access Kafka behind NAT, java.io.BrokenPipe error

2015-07-07 Thread Su She
Hello Everyone, I am in a tricky situation. I am running Kafka (downloaded via binary) on a private cloud behind NAT. I am hoping to send messages to the broker from outside the cloud. Everything else seems to be working fine, I can send messages from instances within the private cloud. The insta

Re: Trying to access Kafka behind NAT, java.io.BrokenPipe error

2015-07-07 Thread Su She
also what zookeeper uses to communicate to the broker, but if zookeeper > is inside the NAT it might not have a route via that external IP. > On Jul 7, 2015 2:10 PM, "Su She" wrote: > > > Hello Everyone, > > > > I am in a tricky situation. > > > >

Re: Trying to access Kafka behind NAT, java.io.BrokenPipe error

2015-07-07 Thread Su She
Quick question, so is there any way to set the advertised host name differently for the zookeeper and clients? Thanks, Su On Tue, Jul 7, 2015 at 5:33 PM, Su She wrote: > Thank you Hawin and Mike for the answers. > > Having a public IP would be the easiest solution, but unfortunat