Fixed and updated code examples from the book "Apache Kafka"apache