Displaying the DataStax Connector configuration

Display configuration of a running connector.

Use the Apache Kafka Connect REST API config command to show the configuration of a running DataStax Apache Kafka™ Connector:
curl -X GET "http://worker_ip:port/connectors/connector_name/config"
where
  • worker_ip - The hostname or IP address of the Kafka Connect worker.
  • port - The listening port for the Kafka Connect REST API. By default this service runs on port 8083.
  • connector_name - DataStax Apache Kafka™ Connector name.

Example show configuration

To display the configuration of dse-sink-dstributed-examples:
curl -X GET \
"http://localhost:8083/connectors/dse-sink-distributed-example/config"
The results show in JSON format:
Output:
{
  "name": "dse-sink-distributed-example",
  "config": {
    "connector.class": "com.datastax.kafkaconnector.DseSinkConnector",
    "tasks.max": "5",
    "topics": "json-stream",
    "topic.json-stream.consistencyLevel": "LOCAL_QUORUM",
    "contactPoints": "127.0.0.1",
    "loadBalancing.localDc": "Cassandra",
    "topic.json-stream.ks.tbl.mapping": "symbol=value.symbol, ts=value.ts, exchange=value.exchange, industry=value.industry, name=value.name, value=value.value",
    "name": "dse-sink-distributed-example"
  },
  "tasks": [
    {
      "connector": "dse-sink-distributed-example",
      "task": 0
    },
    {
      "connector": "dse-sink-distributed-example",
      "task": 1
    },
    {
      "connector": "dse-sink-distributed-example",
      "task": 2
    },
    {
      "connector": "dse-sink-distributed-example",
      "task": 3
    },
    {
      "connector": "dse-sink-distributed-example",
      "task": 4
    }
  ],
  "type": "sink"
}