Consumer Groups

Kafka consumer group lag, partition assignments, member status, and committed offset positions are monitored and managed from the Consumer Groups page in Cloudera Surveyor.

Consumer Groups Page

The Consumer Groups page provides detailed information about all consumer groups in the selected cluster. Monitor consumer group health, lag metrics, member status, and partition assignments. Filter and sort consumer groups by name, status, group type, or lag. Delete consumer groups as needed.

Figure 1. Consumer Groups page

At the top of the page, health summary tiles displays the total number of consumer groups categorized by status, providing an at–a–glance view of the overall health distribution across all consumer groups in the selected cluster.

Beneath the tiles, a table displays the following essential consumer group metrics for quick health assessment:

  • Name – A unique identifier (Group Id) for the consumer group.
  • Status – The overall health status of the consumer group derived from active alerts.
  • Type – The type of consumer group such as Consumer, Classic, or Streams.
  • State – The current state of the consumer group such as Stable, Empty, or Dead.
  • Simple – The indication of whether the consumer group is a simple consumer group. Simple consumer groups have committed offsets but do not use the entire consumer group protocol with coordinator or rebalancing.
  • Coordinator – The broker ID of the group coordinator responsible for managing this consumer group.
  • Total Lag – The combined lag across all partitions consumed by the consumer group.
  • Topics – The number of topics with offsets committed by the consumer group.
  • Consumers – The number of active consumer members in the group.

Click any consumer group row to open the Entity Details Drawer for quick access to all consumer group attributes. Click the consumer group name to go to the Consumer Group Details page.

Consumer Group Details Page

The Consumer Group Details page provides detailed information about an individual consumer group. At the top of the page, health summary tiles display the consumer group's overall status and key metrics including member count, total lag, and subscribed topic count.

Figure 2. Consumer Group Details page

The page organizes consumer group information through the following tabs:

  • Alerts – View and monitor all alerts affecting the consumer group.

  • Partition Assignment – View partition offset positions and lag. Edit offsets as needed.

  • Members – View active consumer group members and their partition assignments.

Editing consumer group offsets

Edit consumer group offsets in Cloudera Surveyor using the Edit Committed Offsets option on the Partition Assignment tab of the Consumer Group Details pages.

Consumer offsets track the position of each consumer group within a topic partition, allowing consumers to resume reading from where they left off. In Cloudera Surveyor, you edit offsets using the Consumer Groups > Consumer Group Details > Partition Assignment > Edit Committed Offsets option, which opens the Edit Committed Offsets modal. The modal allows you to select a scope and choose from multiple reset strategies to control where consumers will begin reading messages.

Editing offsets changes the position from which consumers read messages when they restart. This operation only updates the stored offset position in Kafka. Active consumers must be stopped to ensure that the updated offsets take effect.

You edit offsets to replay messages after a processing error, skip problematic messages that are causing consumer failures, or reprocess data with updated business logic. Offset edits are also useful for testing consumer behavior or recovering from incorrect offset commits.

  • You must have the necessary permissions to alter consumer group offsets in your Kafka cluster. The required Kafka ACL is READ on the GROUP resource.
  • You must stop all consumer applications in the target consumer group before editing offsets. Active consumers do not pick up the updated offsets until they restart and rejoin the consumer group.
  1. In Cloudera Surveyor, click Consumer Groups.
  2. Click the cluster name in the breadcrumb at the top left and select your target cluster from the list.
  3. Click the Name of a consumer group to open the Consumer Group Details page for that consumer group.
  4. Go to the Partition Assignment tab.
  5. Click Edit Committed Offsets to open the offset editor.
  6. In the Edit Committed Offsets modal, select a scope from the Scope drop-down menu.
    • All Subscribed Topic Partitions – Apply the offset edit to all partitions consumed by this consumer group.
    • Topics – Select specific topics to edit offsets for all their partitions.
    • Topics & Partitions – Select specific topic partitions individually.
  7. If you selected the Topics or Topics & Partitions scope, select the topics and partitions from the searchable list.
  8. In the Selected Strategy section, select a strategy.
    The following strategies are available:
    • Set To Current – Resets to the consumer group's currently committed offset.

    • Set To Earliest – Resets to the beginning of the partition (oldest available message).

    • Set To Latest – Resets to the current end of the partition (newest available message).

    • Set To Date Time – Resets to the offset at a specific date and time. When selected, a Date Time field is displayed to enter the date and time.

    • Set To Time Duration – Resets to the offset to a point in time based on a specified duration. When selected, a Duration (ms) field is displayed to enter the duration in milliseconds.

    • Set To Custom Offset – Resets to an exact offset value. When selected, an Offset field is displayed to enter the offset value.

  9. Click Apply.
The offset positions are updated in Kafka. When consumer applications restart, they resume reading from the updated positions.
Restart consumer applications to begin reading from the updated offset positions.

Deleting consumer groups

Delete consumer groups in Cloudera Surveyor using the Delete option on Consumer Groups pages or the Delete option on the Consumer Group Details pages.

Deleting a consumer group permanently removes the group's metadata and all committed offset records from the cluster. This operation cannot be undone.

You delete consumer groups when decommissioning applications, cleaning up test or development environments, or removing stale consumer groups that are no longer in use. When a deleted consumer group is recreated by restarting an application, it starts fresh with no offset history, and the offset behavior is determined by the auto.offset.reset property (typically starting from latest or earliest).

  • You must have the necessary permissions to delete consumer groups in your Kafka cluster. The required Kafka ACL is DELETE on the GROUP resource.
  • You must verify that all consumer applications in the target group have stopped. Deleting an active consumer group might cause unexpected behavior when consumers attempt to commit offsets or rejoin.
  • You must verify that no applications or monitoring tools depend on the consumer group's offset information.
  1. In Cloudera Surveyor, click Consumer Groups.
  2. Click the cluster name in the breadcrumb at the top left and select your target cluster from the list.
  3. Locate the consumer group you want to delete in the table.
  4. Click > Delete on the right side of the consumer group row.
  5. Type delete in the confirmation dialog.
  6. Click Delete to confirm deletion.
The consumer group and its committed offsets are permanently deleted from Kafka. However, the deleted consumer group will remain visible in Cloudera Surveyor until the next Kafka snapshot is taken and data from the new snapshot is published to the UI.