Kafka Commands

How to start a zookeeper ? > zkServer.sh start How to start a Kafka Broker ? > kafka-server-start.sh /home/npntraining/opt/kafka_2.11-0.10.2.1/config/server.properties How to create a topic ? > kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic Hello-Kafka  

When working with Apache Kafka you might want to write data from a Kafka topic to a local text file. This is actually very easy to do with Kafka Connect. Kafka Connect is a framework that provides scalable and reliable streaming of data to and from Apache Kafka. With Kafka …

The retention period of records in Kafka is configurable. The default retention period is 7 days. The retention period is specific to topic. SO in the cluster each topic can have their own retention period. The retention attribute is available in the server.properties of the apache kafka distribution. The attribute …