Kafka Connect 2.0.1: GET /connector/(string:name)

Gets information about a specific connector.

Description

Table 1. Parameters
Parameters Description
name (string) Name of the created connector.
config (map) Configuration parameters for the connector.
tasks (array) List of active tasks generated by the connector.
tasks[i].connector (string) Name of the connector the task belongs to.
tasks[i].task (int) Task ID within the connector.

Syntax

http://<host>:8083/connectors/<name>

Request Example

GET /connectors/hdfs-sink-connector HTTP/1.1 Host: connect.example.com Accept: application/json 

Response Example

HTTP/1.1 200 OK Content-Type: application/json  
{     "name": "hdfs-sink-connector",     
  "config": {         
    "connector.class": "io.confluent.connect.hdfs.HdfsSinkConnector",         
    "tasks.max": "10",         
    "topics": "test-topic",         
    "hdfs.url": "hdfs://fakehost:9000",         
    "hadoop.conf.dir": "/opt/hadoop/conf",         
    "hadoop.home": "/opt/hadoop",         
    "flush.size": "100",         
    "rotate.interval.ms": "1000"     },     
  "tasks": [         
    { "connector": "hdfs-sink-connector", "task": 1 },         
    { "connector": "hdfs-sink-connector", "task": 2 },         
    { "connector": "hdfs-sink-connector", "task": 3 }     ] 
 }