Re: Can anyone help me to send messages in their original order?

2018-05-26 Thread Raymond Xie
to the same partition. > > If messages are published with a “null” key then they will be spread out > round robin across all partitions (which is what you have done). > > > Conclusion > > You will see ordered delivery if your either use a key when you publish or > crea

Re: Can anyone help me to send messages in their original order?

2018-05-26 Thread Raymond Xie
you create a topic with one partition they will be in order. > > Alternatively if you publish with the same key for every message they will > be in the same order even if your topic has more than 1 partition. > > Either way above will work for Kafka. > > -hans > > > On May

Can anyone help me to send messages in their original order?

2018-05-25 Thread Raymond Xie
Hello, I just started learning Kafka and have the environment setup on my hortonworks sandbox at home vmware. test.csv is what I want the producer to send out: more test1.csv ./kafka-console-producer.sh --broker-list sandbox.hortonworks.com:6667 --topic kafka-topic2 1, abc 2, def ... 8, vwx 9,

Re: No main class set in JAR; please specify one with --class and java.lang.ClassNotFoundException

2017-02-25 Thread Raymond Xie
wrote: > Try to use --packages to include the jars. From error it seems it's > looking for main class in jars but u r running a python script... > > On 25 Feb 2017 10:36 pm, "Raymond Xie" wrote: > > That's right Anahita, however, the class name is

Re: No main class set in JAR; please specify one with --class and java.lang.ClassNotFoundException

2017-02-25 Thread Raymond Xie
PM, Anahita Talebi wrote: > You're welcome. > You need to specify the class. I meant like that: > > spark-submit /usr/hdp/2.5.0.0-1245/spark/lib/spark-assembly-1.6.2.2.5.0. > 0-1245-hadoop2.7.3.2.5.0.0-1245.jar --class "give the name of the class" > > > >

Re: No main class set in JAR; please specify one with --class and java.lang.ClassNotFoundException

2017-02-25 Thread Raymond Xie
ed it by removing --jars. > > Cheers, > Anahita > > On Saturday, February 25, 2017, Raymond Xie wrote: > >> I am doing a spark streaming on a hortonworks sandbox and am stuck here >> now, can anyone tell me what's wrong with the following code and the >> except

No main class set in JAR; please specify one with --class and java.lang.ClassNotFoundException

2017-02-25 Thread Raymond Xie
I am doing a spark streaming on a hortonworks sandbox and am stuck here now, can anyone tell me what's wrong with the following code and the exception it causes and how do I fix it? Thank you very much in advance. spark-submit --jars /usr/hdp/2.5.0.0-1245/spark/lib/spark-assembly-1.6.2.2.5.0.0-124

Need guidance to create a pipeline

2017-02-20 Thread Raymond Xie
Hello. I am new to Kafka. I am wondering how to read log using kafka and get it parsed in spark. Please correct me if I am wrong: I want to create a model (pipeline) which takes files dropped in a specific folder or hive or whatever storage, and use the file as the input of kafka producer; On t