title: Kafka Streams - kafka-streams-application-reset.sh sending wrong API version
body: <p>Kafka 0.10.0.1 adds the ability to reset a Kafka Streams app using a script called <a href="https://github.com/apache/kafka/blob/trunk/bin/kafka-streams-application-reset.sh" rel="nofollow noreferrer">kafka-streams-application-reset.sh</a></p>
  
  <p>Confluent has some good documentation on this script <a href="https://www.confluent.io/blog/data-reprocessing-with-kafka-streams-resetting-a-streams-application/" rel="nofollow noreferrer">here</a>.</p>
  
  <p>Unfortunately, running the script locally results in an error:</p>
  
  <pre><code>$ bin/kafka-streams-application-reset --application-id my-streams-app \
                                        --input-topics my-input-topic \
                                        --intermediate-topics rekeyed-topic \
                                        --bootstrap-servers brokerHost:9092 \
                                        --zookeeper zookeeperHost:2181
  
  # output
  ERROR: Request GROUP_COORDINATOR failed on brokers List(...)
  </code></pre>
  
  <p>Also, the following line appears in the broker logs:</p>
  
  <pre><code>kafka.network.InvalidRequestException: Error getting request for apiKey: 3 and apiVersion: 2
  </code></pre>
  
  <p>From what I can tell, it looks like the client is making an invalid request, but I'm unsure why this happening. Our brokers are still on 0.9.0 so I'm not sure if that's the issue, but it appears to be <a href="https://github.com/apache/kafka/blob/3b4c347949c02b1e2b1dd473deda0f8d2304d027/clients/src/main/java/org/apache/kafka/common/protocol/ApiKeys.java#L26" rel="nofollow noreferrer">a meta data request</a> based on the <code>apiKey</code> value in the broker log.</p>
  
  <p>Could someone please let me know why this might be happening and how it can be resolved?</p>