@@ -20,11 +20,11 @@ To build the connector, you must have the following installed:
20
20
21
21
Clone the repository with the following command:
22
22
```
23
- git clone https://github.com/uts58/kafka-connect-mqtt.git
23
+ git clone https://github.com/uts58/kafka-connect-mqtt-file .git
24
24
```
25
- Change directory into the ` kafka-connect-mqtt ` directory
25
+ Change directory into the ` kafka-connect-mqtt-file ` directory
26
26
```
27
- cd kafka-connect-mqtt
27
+ cd kafka-connect-mqtt-file
28
28
```
29
29
Build the connector fat jar using Maven
30
30
```
@@ -49,11 +49,6 @@ http://<kafkaconnect>:8083/connector-plugins
49
49
If you see these entries, the connector has been installed succesfully
50
50
51
51
```
52
- {
53
- "class": "org.ndsu.agda.connect.connectors.mqtt.MQTTSinkConnector",
54
- "type": "sink",
55
- "version": "<version>"
56
- },
57
52
{
58
53
"class": "org.ndsu.agda.connect.connectors.mqtt.MQTTSourceConnector",
59
54
"type": "source",
@@ -99,42 +94,6 @@ curl -X POST \
99
94
* ` mqtt.userName ` (optional): Username to connect to MQTT broker
100
95
* ` mqtt.password ` (optional): Password to connect to MQTT broker
101
96
102
- ## Configuring the MQTT Sink connector
103
-
104
- The MQTT Sink Connector reads messages from a Kafka topic and publishes them to a MQTT topic.
105
-
106
- Here is a basic configuration example:
107
- ```
108
- curl -X POST \
109
- http://<kafkaconnect>>:8083/connectors \
110
- -H 'Content-Type: application/json' \
111
- -d '{ "name": "mqtt-sink-connector",
112
- "config":
113
- {
114
- "connector.class":"org.ndsu.agda.connect.connectors.mqtt.MQTTSinkConnector",
115
- "mqtt.topic":"my_mqtt_topic",
116
- "topics":"my_kafka_topic",
117
- "mqtt.qos": 2,
118
- "mqtt.clientID":"my_client_id",
119
- "mqtt.broker":"tcp://127.0.0.1:1883",
120
- "key.converter":"org.apache.kafka.connect.storage.StringConverter",
121
- "key.converter.schemas.enable":false,
122
- "value.converter":"org.apache.kafka.connect.storage.StringConverter",
123
- "value.converter.schemas.enable":false
124
- }
125
- }'
126
- ```
127
-
128
- ### Optional Configuration options
129
- * ` mqtt.qos ` (optional): 0 – At most Once, 1 – At Least Once, 2 – Exactly Once
130
- * ` mqtt.automaticReconnect ` (optional)(default: true): Should the client automatically reconnect in case of connection failures
131
- * ` mqtt.keepAliveInterval ` (optional)(default: 60 seconds)
132
- * ` mqtt.cleanSession ` (optional)(default: true): Controls the state after disconnecting the client from the broker.
133
- * ` mqtt.connectionTimeout ` (optional)(default: 30 seconds)
134
- * ` mqtt.userName ` (optional): Username to connect to MQTT broker
135
- * ` mqtt.password ` (optional): Password to connect to MQTT broker
136
-
137
-
138
97
## Configuring the File Sink connector
139
98
140
99
The File Sink Connector reads messages from a Kafka topic(s) and dumps them into files.
0 commit comments