What is the need of serializer in Kafka Producer API?

0 votes

Hi,

In our kafka producer API we need serializer. What is the use of this serializer?

Can somebody explain?

Thank You

6 days ago in Apache Kafka by akhtar
• 1,440 points
10 views

1 answer to this question.

0 votes

Hi@akhtar,

If we try to use String key and String Value in kafka producer API, there we need serializer class. By default kafka accepts only array of bytes. So to convert from String to array of bytes we use String serializer class. There are also int serializer and float serializer available in kafka.

Thank You

answered 6 days ago by MD
• 2,750 points

Related Questions In Apache Kafka

0 votes
1 answer

What is the need of zookeeper in kafka? Can I use kafka without zookeeper?

Hi@akhtar, You can not use kafka without zookeeper. ...READ MORE

answered Feb 6 in Apache Kafka by MD
• 2,750 points
37 views
0 votes
1 answer

What is the optimum number of producers to create in Kafka?

In general, a single producer for all ...READ MORE

answered Jul 10, 2018 in Apache Kafka by nitinrawat895
• 10,840 points
1,920 views
0 votes
1 answer

What is the importance of Kafka bootstrap.servers?

Hi@akhtar, Bootstrap.servers is a mandatory field in Kafka ...READ MORE

answered 6 days ago in Apache Kafka by MD
• 2,750 points
22 views
+1 vote
10 answers

Writing the Kafka consumer output to a file

System.out.println(String.valueOf(output.offset()) + ": " + new String(bytes, ...READ MORE

answered Dec 7, 2018 in Apache Kafka by Harsh
9,990 views
0 votes
1 answer

How to create kafka producer API?

Hi@akhtar, To create kafka producer API, you can ...READ MORE

answered 6 days ago in Apache Kafka by MD
• 2,750 points
13 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,840 points
4,131 views
0 votes
1 answer

What is the use of acts configuration in Kafka Producer API?

Hi@akhtar, The acts configuration is used to configure ...READ MORE

answered 5 days ago in Apache Kafka by MD
• 2,750 points
14 views
0 votes
1 answer

What is the meaning of retries in Kafka Producer API?

Hi@akhtar, It defines how many time the producer ...READ MORE

answered 6 days ago in Apache Kafka by MD
• 2,750 points
12 views