To verify your connector configurations, you can check their statuses from the Confluent Control Center or by submitting a curl
command to the REST API from a terminal window.
Procedure
- To report a connector status in the Confluent Control Center:
- In a web browser, open the Confluent Control Center.
By default, the
Confluent Control Center can be reached
at:
http://<server>:9021
where <server> is the host
name or IP address of your Confluent
server.
- On the sidebar on the left, click
Connect.
- Select the appropriate Data Gate worker cluster.
- Find the connector you want to check in the connector list and select its
name.
A working connector reports the following details:
- The task status Running
- Configuration details
- Metrics and throughput
- Recent errors (if any)
- To retrieve a connector status by using the REST API:
- Open a terminal window and log on to the Confluent server.
- On the command-line, enter the appropriate curl command. Make sure
to address the correct port.
See the following
example:
curl http://localhost:8083/connectors/db2z-source-connector/status
Expected
result:
{
"name": "db2z-source-connector",
"connector": {
"state": "RUNNING",
"worker_id": "connect-worker:8083"
},
"tasks": [
{
"id": 0,
"state": "RUNNING",
"worker_id": "connect-worker:8083"
}
]
}