<p>How do I use the standard <code>kafka-avro-console-consumer</code> tool with Kafka running via the Confluent Helm Charts? The <code>confluentinc/cp-kafka:5.0.0</code> image recommended for running cli utilities doesn't contain <code>kafka-avro-console-consumer</code>.</p>

<p>If I shell into the schema-registry pod to use <code>kafka-avro-console-consumer</code></p>

<pre><code>kubectl exec -it my-confluent-oss-cp-schema-registry-6c8546c86d-pjpmd -- /bin/bash

/usr/bin/kafka-avro-console-consumer --bootstrap-server my-confluent-oss-cp-kafka:9092 --topic my-test-avro-records --from-beginning

Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 5555; nested exception is: 
    java.net.BindException: Address already in use (Bind failed)
sun.management.AgentConfigurationError: java.rmi.server.ExportException: Port already in use: 5555; nested exception is: 
    java.net.BindException: Address already in use (Bind failed)
    at sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:480)
    at sun.management.Agent.startAgent(Agent.java:262)
    at sun.management.Agent.startAgent(Agent.java:452)
Caused by: java.rmi.server.ExportException: Port already in use: 5555; nested exception is: 
    java.net.BindException: Address already in use (Bind failed)
</code></pre>

clay
<blockquote>
  <p>java.rmi.server.ExportException: Port already in use: 5555;</p>
</blockquote>

<p>Sounds like you've enabled JMX as part of that container via the <code>KAFKA_JMX_PORT</code> variable.</p>

<p>If that's the case, you will need to temporarily override that by exporting (or <code>unset</code>) it within the shell session to a different value before running any other Kafka scripts </p>
