Complete the code to set the rebalance protocol to eager.
props.put("partition.assignment.strategy", "[1]");
Setting the partition.assignment.strategy to EagerAssignor enables eager rebalancing.
Complete the code to set the rebalance protocol to cooperative.
props.put("partition.assignment.strategy", "[1]");
Setting the partition.assignment.strategy to CooperativeStickyAssignor enables cooperative rebalancing.
Fix the error in the rebalance strategy assignment to use cooperative rebalancing.
props.put("partition.assignment.strategy", "[1]");
Cooperative rebalancing requires CooperativeStickyAssignor as the assignment strategy.
Fill both blanks to configure a Kafka consumer for cooperative rebalancing with the correct assignor and enable incremental cooperative rebalancing.
props.put("partition.assignment.strategy", "[1]"); props.put("rebalance.protocol", "[2]");
Use CooperativeStickyAssignor for the assignment strategy and set rebalance.protocol to cooperative-sticky to enable cooperative rebalancing.
Fill all three blanks to create a Kafka consumer configuration that uses eager rebalancing with the correct assignor, rebalance protocol, and session timeout.
props.put("partition.assignment.strategy", "[1]"); props.put("rebalance.protocol", "[2]"); props.put("session.timeout.ms", [3]);
For eager rebalancing, use EagerAssignor as the assignor, set rebalance.protocol to eager, and set a session timeout like 30000 milliseconds.