title: spring cloud stream - consumer group bound
body: <p>My consumer is bound to anonymous consumer group instead of consumer group I specified.</p>
  
  <pre><code>spring:
    cloud:
      stream:
        kafka:
          binder:
            brokers: localhost
            defaultBrokerPort: 9092
            zkNodes: localhost
            defaultZkPort: 2181
          bindings:
            inEvent:
              group: eventin
              destination: event
            outEvent:
              group: eventout
              destination: processevent
  </code></pre>
  
  <p>My Spring boot applicaition</p>
  
  <pre><code>@SpringBootApplication
  @EnableBinding(EventStream.class)
  public class ConsumerApplication {
      public static void main(String[] args) {
          SpringApplication.run(ConsumerApplication.class, args);
      }
      @StreamListener(value = "inEvent")
      public void getEvent(Event event){
          System.out.println(event.name);
      }
  }
  </code></pre>
  
  <p>My input output channel interface</p>
  
  <pre><code>public interface EventStream {
      @Input("inEvent")
      SubscribableChannel inEvent();
      @Output("outEvent")
      MessageChannel outEvent();
  }
  </code></pre>
  
  <p>my console log--</p>
  
  <blockquote>
    <p>: Started ConsumerApplication in 3.233 seconds (JVM running for 4.004)
    : [<strong>Consumer clientId=consumer-3, groupId=anonymous.0d0c87d6-ef39-4bfe-b475-4491c40caf6d]</strong> Discovered
    group coordinator singh:9092 (id: 2147483647 rack: null)
        : [Consumer clientId=consumer-3, groupId=anonymous.0d0c87d6-ef39-4bfe-b475-4491c40caf6d] Revoking
    previously assigned partitions []
        : partitions revoked: []
        : [Consumer clientId=consumer-3, groupId=anonymous.0d0c87d6-ef39-4bfe-b475-4491c40caf6d] (Re-)joining
    group
        : [Consumer clientId=consumer-3, groupId=anonymous.0d0c87d6-ef39-4bfe-b475-4491c40caf6d] Successfully
    joined group with generation 1
        : [Consumer clientId=consumer-3, groupId=anonymous.0d0c87d6-ef39-4bfe-b475-4491c40caf6d] Setting newly
    assigned partitions [inEvent-0]
        : [Consumer clientId=consumer-3, groupId=anonymous.0d0c87d6-ef39-4bfe-b475-4491c40caf6d] Resetting
    offset for partition inEvent-0 to offset 2.
        : partitions assigned: [inEvent-0]</p>
  </blockquote>