title: How do I view the full TCP packet that Apache Kafka produces?
body: <p>I am using Apache Kafka. I use <code>KafkaProducer</code> to produce data and <code>KafkaConsumer</code> to consume data. My config data is:</p>
  
  <pre><code>Properties props = new Properties();
  props.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092");
  props.put(ProducerConfig.CLIENT_ID_CONFIG, "DemoProducer");
  props.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, "org.apache.kafka.common.serialization.IntegerSerializer");
  props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, "org.apache.kafka.common.serialization.StringSerializer");
  </code></pre>
  
  <p>The consumer config is the same. How do I view the whole TCP packet details which are being sent and received by the producers and consumers?</p>