Skip to content

Kafka Connector

Ahmed Elbahtemy edited this page Apr 22, 2019 · 19 revisions

Contents

Overview

  • KafkaConnector is intended for consuming a single Kafka topic

Summary

Supports Datastream Updates

Y

Checkpoint Type

Kafka consumer offsets are regularly committed to Kafka

(commitIntervalMs)

Diagnostics Aware

Y

Configuration

Shared Configuration

Configuration properties shared among all Kafka Connectors in Brooklin are documented on this page.

Connector-Specific Configuration

Configuration properties specific to KafkaConnector are listed below.

Property Description Default

isGroupIdHashingEnabled

  • A flag indicating whether Kafka consumer group ID should be hashed

  • If true, the consumer group ID for a datastream is set to <clusterName>.<groupIdMD5Hash>, where:

  • If false, the consumer group ID for a datastream is set to <sourceConnectionString>-to-<destConnectionString>, where:

false

whiteListedClusters

  • A comma-separated list of Kafka brokers, e.g. host1:port1,host2:port2

  • Any datastream using this Connector must specify one of these Kafka brokers in its source.connectionString

(None)

Diagnostics

URL

GET /diag?q=:query&type=:component&scope=:scope&content=:componentQuery

URL Params

Required

  • query

    • Possible values are: status or allStatus

    • status retrieves data for a single Brooklin instance

    • allStatus retrieves aggregated data for all Brooklin instances in the cluster

  • type: only supported value is connector

  • scope: Name of the connector to query, as specified in brooklin.server.connectorNames

  • content

    • Represents a subquery to the component (connector) in question

    • Possible values are: datastream_state and position

      Subquery

      datastream_state

      Subquery Params

      Required

      datastreamName: Name of datastream to query

      Example

      datastream_state?datastream=:datastreamName

      Constraints

      • Datastream must exist

      Response

      Content-Type

      application/json

      Schema
      {
        "elements": [
        ],
        "paging": {
          "count": "[int]",
          "start": "[int]",
          "links": "[array]"
        }
      }

      Subquery

      position

      Subquery Params

      Optional

      offsets

      • A boolean indicating whether to return time-based vs. offset-based position data for the retrieved DatastreamTasks

      • Default is false (time-based)

      Example

      position?offsets=true

      Constraints

      Response

      Content-Type

      application/json

      Schema
      {
        "elements": [
        ],
        "paging": {
          "count": "[int]",
          "start": "[int]",
          "links": "[array]"
        }
      }

Metrics