Top "Kafka-producer-api" questions

Use for questions related to the Apache Kafka producer API.

How to check whether Kafka Server is running?

I want to ensure whether kafka server is running or not before starting production and consumption jobs. It is in …

java apache-kafka kafka-producer-api
Understanding Kafka Topics and Partitions

I am starting to learn Kafka for enterprise solution purposes. During my readings, some questions came to my mind: When …

apache-kafka kafka-consumer-api kafka-producer-api
Is key required as part of sending messages to Kafka?

KeyedMessage<String, byte[]> keyedMessage = new KeyedMessage<String, byte[]>(request.getRequestTopicName(), SerializationUtils.serialize(message)); producer.send(keyedMessage); …

apache-kafka kafka-consumer-api kafka-producer-api
How to write a file to Kafka Producer

I am trying to load a simple text file instead of standard input in Kafka. After downloading Kafka, I performed …

file apache-kafka kafka-consumer-api kafka-producer-api
How to create topics in apache kafka?

What is the bestway to create topics in kafka? How many replicas/partitions to be defined when we create topics? …

apache-kafka kafka-consumer-api kafka-producer-api
How to configure logging for Kafka producers?

I am using Kafka producer client and i don't have any log4j configuration in my project. On running, the …

logging log4j apache-kafka kafka-producer-api
Kafka Getting error No resolvable bootstrap urls given in bootstrap servers

I'm pretty sure the bootstrap.servers is correct. Is there anything confliction in Maven or what wrong with Kafka?? Before …

java maven apache-kafka kafka-producer-api
Topics, partitions and keys

I am looking for some clarification on the subject. In Kafka documentations I found the following: Kafka only provides a …

apache-kafka kafka-consumer-api kafka-producer-api
Kafka producer TimeoutException: Expiring 1 record(s)

I am using Kafka with Spring-boot: Kafka Producer class: @Service public class MyKafkaProducer { @Autowired private KafkaTemplate<String, String> …

apache-kafka kafka-consumer-api kafka-producer-api spring-kafka
Kafka with .Net Client

I want to use kafka on our production environment. I want to know if the latest version of client is …

apache-kafka kafka-producer-api