Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Proposed Changes

kafka-consumer-groups.sh

--describe --state --verbose

Show the group level information. Add GROUP-EPOCH and TARGET-ASSIGNMENT-EPOCH. If the value is empty, showing "-" instead.

...

Following table lists protocol meaning.

ProtocolMeaning
"classic"

A member in classic group.

A member with non-null classicMemberMetadata in consumer group.

"consumer"A member with null classicMemberMetadata in consumer group.
"share"A member in share group.

--describe --offsets --verbose

...

Code Block
$ bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group my-group --offsets --verbose
GROUP		TOPIC		PARTITION	LEADER-EPOCH	CURRENT-OFFSET	LOG-END-OFFSET	LAG		CONSUMER-ID										HOST			CLIENT-ID
my-group	my_topic	0			1				10				10				10		my-group-3056e339-59e1-43d8-abe3-8a9e10c53937	/127.0.0.1		consumer-test.group.CLASSIC.--offsets-2
my-group	my_topic	1			1				10				10				10		my-group-3056e339-59e1-43d8-abe3-8a9e10c53937	/127.0.0.1		consumer-test.group.CLASSIC.--offsets-2
my-group	new_topic	0			1				10				10				10		my-group-3056e339-59e1-43d8-abe3-8a9e10c53937	/127.0.0.1		consumer-test.group.CLASSIC.--offsets-2
my-group	new_topic	1			1				10				10				10		my-group-3056e339-59e1-43d8-abe3-8a9e10c53937	/127.0.0.1		consumer-test.group.CLASSIC.--offsets-2 

kafka-share-groups.sh

--describe --verbose

Show the group level information. Add GROUP-EPOCH and TARGET-ASSIGNMENT-EPOCH.

...