Re: AVRO Schema with optional field ("type": "record")

2018-10-21 Thread Mina Aslani
How can I do the same thing in the .avro format? On Friday, October 19, 2018, Jacob Sheck wrote: > Can you use a union with null? This would be the IDL exmple. > > record RecordConfig { > ... > } > > union {null, RecordConfig} record = null; > > On Fri, Oct 19,

AVRO Schema with optional field ("type": "record")

2018-10-19 Thread Mina Aslani
Hi, I am adding AVRO schema to the kafka messages, however, I would like to know how I can make a field of "type": "record" optional. *Note*: "default":null does not help. Any idea? Can you elaborate the solution/workaround with an example please? Best regards, Mina

Re: org.apache.kafka.clients.consumer.OffsetOutOfRangeException

2018-02-12 Thread Mina Aslani
ent.io> wrote: > AFAIK, Spark does not pass this config to the consumer on purpose... > It's not a Kafka issues -- IIRC, there is Spark JIRA ticket for this. > > -Matthias > > On 2/12/18 11:04 AM, Mina Aslani wrote: > > Hi, >

Re: org.apache.kafka.clients.consumer.OffsetOutOfRangeException

2018-02-12 Thread Mina Aslani
@confluent.io> wrote: > AFAIK, Spark does not pass this config to the consumer on purpose... > It's not a Kafka issues -- IIRC, there is Spark JIRA ticket for this. > > -Matthias > > On 2/12/18 11:04 AM, Mina Aslani wrote: > > Hi, >

org.apache.kafka.clients.consumer.OffsetOutOfRangeException

2018-02-12 Thread Mina Aslani
Hi, I am getting below error Caused by: org.apache.kafka.clients.consumer.OffsetOutOfRangeException: Offsets out of range with no configured reset policy for partitions: {topic1-0=304337} as soon as I submit a spark app to my cluster. I am using below dependency name:

Re: Data in kafka topic in Json format

2017-06-02 Thread Mina Aslani
> > > > > On Jun 2, 2017, at 8:12 AM, Mina Aslani <aslanim...@gmail.com> wrote: > > > > Hi, > > > > I would like to add that I use kafka-connect and schema-registery > version ` > > 3.2.1-6`. > > > > Best regards, > > Mina >

Re: Data in kafka topic in Json format

2017-06-02 Thread Mina Aslani
Hi, I would like to add that I use kafka-connect and schema-registery version ` 3.2.1-6`. Best regards, Mina On Fri, Jun 2, 2017 at 10:59 AM, Mina Aslani <aslanim...@gmail.com> wrote: > Hi. > > Is there any way that I get the data into a Kafka topic in Json format? > The so

Data in kafka topic in Json format

2017-06-02 Thread Mina Aslani
Hi. Is there any way that I get the data into a Kafka topic in Json format? The source that I ingest the data from have the data in Json format, however when I look that data in the kafka topic, schema and payload fields are added and data is not in json format. I want to avoid implementing a

Deployment of Kafka Stream app

2017-04-27 Thread Mina Aslani
any one framework (e.g. you can use > kubernetes, mesos, Yarn, or anything else) > > On 4/27/17, 10:52 AM, "Mina Aslani" <aslanim...@gmail.com> wrote: > > Hi, > > I created a kafka stream app and as I was informed I created a docker > image &g

Kafka Stream vs Spark

2017-04-27 Thread Mina Aslani
Hi, I created a kafka stream app and as I was informed I created a docker image with the app and launched it as a container. However, I have couple of questions: - Would every Kafka streaming job require a new docker image and deployment of the container/service? - How should I structure things

Re: Using Kafka Stream in the cluster of kafka on one or multiple docker-machine/s

2017-03-30 Thread Mina Aslani
have the container running, in my container should I run Java > -cp ... same as > > https://github.com/confluentinc/examples/blob/3. > 2.x/kafka-streams/src/main/java/io/confluent/examples/streams/ > WordCountLambdaExample.java#L55-L62? > > Yes. > > > -Michael >

Re: Using Kafka Stream in the cluster of kafka on one or multiple docker-machine/s

2017-03-29 Thread Mina Aslani
://github.com/confluentinc/examples/blob/3. 2.x/kafka-streams/src/main/java/io/confluent/examples/streams/ WordCountLambdaExample.java#L55-L62? Regards, Mina On Tue, Mar 21, 2017 at 4:49 PM, Mina Aslani <aslanim...@gmail.com> wrote: > Hi Michael, > > Thank you very much for the prompt r

Re: Using Kafka Stream in the cluster of kafka on one or multiple docker-machine/s

2017-03-21 Thread Mina Aslani
need to run 10 instances of your app. > > Also, what do you mean by "in a cluster of Kafka containers" and "in the > cluster of Kafkas"? > > On Tue, Mar 21, 2017 at 9:08 PM, Mina Aslani <aslanim...@gmail.com> wrote: > > > Hi, > > > > I am try

Using Kafka Stream in the cluster of kafka on one or multiple docker-machine/s

2017-03-21 Thread Mina Aslani
Hi, I am trying to understand how I can use a kafka stream app(jar file) in a cluster of kafka containers. Kafka does not have master/slave concept (unlike spark), how I should run my app in the cluster of kafkas (e.g. on one or multiple docker-machine/s)? I use below command line when having

org.apache.kafka.common.errors.TimeoutException

2017-03-20 Thread Mina Aslani
Hi, I get ERROR Error when sending message to topic my-topic with key: null, value: ... bytes with error: (org.apache.kafka.clients.producer.internals. ErrorLoggingCallback) org.apache.kafka.common.errors.TimeoutException: Expiring 11 record(s) for my-topic-0: 1732 ms has passed since last

Re: Trying to use Kafka Stream

2017-03-15 Thread Mina Aslani
you run the streams app you pass in 123.45.67:9092 > . > > Thanks > Eno > > > On Mar 15, 2017, at 5:14 AM, Mina Aslani <aslanim...@gmail.com> wrote: > > > > Hi, > > I just checked streams-wordcount-output topic using below command > > > > dock

Re: Trying to use Kafka Stream

2017-03-15 Thread Mina Aslani
d was correct, and Kafka too was > working correctly. You were simply unaware that the WordCount example does > not write its output to the console. > > Best, > Michael > > > > > > On Wed, Mar 15, 2017 at 6:14 AM, Mina Aslani <aslanim...@gmail.com> w

Re: Trying to use Kafka Stream

2017-03-14 Thread Mina Aslani
come running same program out of docker-machine does not output to the output topic? Should I make the program as jar and deploy to docker-machine and run it using ./bin/kafka-run-class? Best regards, Mina On Tue, Mar 14, 2017 at 11:11 PM, Mina Aslani <aslanim...@gmail.com> wrote: > I e

Re: Trying to use Kafka Stream

2017-03-14 Thread Mina Aslani
, Mar 14, 2017 at 9:56 PM, Mina Aslani <aslanim...@gmail.com> wrote: > And the port for kafka is 29092 and for zookeeper 32181. > > On Tue, Mar 14, 2017 at 9:06 PM, Mina Aslani <aslanim...@gmail.com> wrote: > >> Hi, >> >> I forgot to add in my previous email 2

Re: Trying to use Kafka Stream

2017-03-14 Thread Mina Aslani
env? How can I check "whether streams (that is just an app) can reach Kafka"? Regards, Mina On Tue, Mar 14, 2017 at 9:00 PM, Mina Aslani <aslanim...@gmail.com> wrote: > Hi Eno, > > Sorry! That is a typo! > > I have a docker-machine with different contain

Re: Trying to use Kafka Stream

2017-03-14 Thread Mina Aslani
And the port for kafka is 29092 and for zookeeper 32181. On Tue, Mar 14, 2017 at 9:06 PM, Mina Aslani <aslanim...@gmail.com> wrote: > Hi, > > I forgot to add in my previous email 2 questions. > > To setup my env, shall I use https://raw.githubusercontent.com/ > confl

Re: Trying to use Kafka Stream

2017-03-14 Thread Mina Aslani
me. This might > not have anything to do with streams, but rather with the Kafka > configuration and whether streams (that is just an app) can reach Kafka at > all. If you provide the above information we can look further. > > > > Thanks > Eno > > > On 14 Mar 2017, at 1

Re: Trying to use Kafka Stream

2017-03-14 Thread Mina Aslani
Any book, document and provides information on how to use kafka stream? On Tue, Mar 14, 2017 at 2:42 PM, Mina Aslani <aslanim...@gmail.com> wrote: > I reset and still not working! > > My env is setup using http://docs.confluent.io/3.2.0/cp-docker-images/ > docs/quickstart.htm

Re: Trying to use Kafka Stream

2017-03-14 Thread Mina Aslani
//github.com/confluentinc/examples/blob/3. > 2.x/kafka-streams/src/main/java/io/confluent/examples/streams/ > WordCountLambdaExample.java#L178-L181 > > > Hope this helps. > > -Matthias > > > On 3/13/17 7:30 PM, Mina Aslani wrote: > > Hi Matthias, > > > &g

WordCount example does not output to OUTPUT topic

2017-03-14 Thread Mina Aslani
Hi, I am using below code to read from a topic and count words and write to another topic. The example is the one in github. My kafka container is in the VM. I do not get any error but I do not see any result/output in my output ordCount-output topic either. The program also does not stop either!

Re: Trying to use Kafka Stream

2017-03-13 Thread Mina Aslani
ication using the reset tool: > http://docs.confluent.io/current/streams/developer- > guide.html#application-reset-tool > > Also keep in mind, that KTables buffer internally, and thus, you might > only see data on commit. > > Try to reduce commit interval or disable caching by

Trying to use Kafka Stream

2017-03-13 Thread Mina Aslani
Hi, This is the first time that am using Kafka Stream. I would like to read from input topic and write to output topic. However, I do not see the word count when I try to run below example. Looks like that it does not connect to Kafka. I do not see any error though. I tried my localhost kafka as

Using Kafka-connect transofrmer

2017-03-02 Thread Mina Aslani
Hi, I am new to Kafka/Kafka-connect. I would like to use Kafka-Connect transformer to get specific fields from my data @ a kafka topic. I was not able to find information/examples/documents about how to use Kafka-Connect transformer. I really appreciate if I can get some info on that! Best

Subscribe to user mailing list

2017-03-01 Thread Mina Aslani
Hi, I would like to subscribe to user mailing list. Best regards, Mina