Complete the code to specify the connector class for a sink connector.
"connector.class": "[1]",
The FileStreamSinkConnector is used to write data from Kafka topics to files, making it a sink connector.
Complete the code to set the Kafka topic that the sink connector will consume from.
"topics": "[1]",
The sink connector consumes data from the input_topic in Kafka to send it to the external system.
Fix the error in the configuration key to specify the file path for the FileStreamSinkConnector.
"file": "[1]",
The file property requires an absolute path to specify where the sink connector writes the data file.
Fill both blanks to complete the sink connector configuration that writes to a file and consumes from a topic.
{
"name": "file-sink-connector",
"connector.class": "[1]",
"tasks.max": "1",
"topics": "[2]",
"file": "/tmp/sink-output.txt"
}The FileStreamSinkConnector writes data to a file, and it consumes from the input_topic Kafka topic.
Fill all three blanks to create a sink connector configuration that writes to a file, consumes from a topic, and limits tasks.
{
"name": "file-sink-connector",
"connector.class": "[1]",
"tasks.max": "[2]",
"topics": "[3]",
"file": "/var/log/kafka_sink.log"
}The configuration uses FileStreamSinkConnector as the connector class, sets tasks.max to 3 to allow parallelism, and consumes from the input_topic.