Configuration
The configuration of the File source connector has the following properties.Property
Example
Before using the File source connector, you need to create a configuration file through one of the following methods.-
JSON
-
YAML
Usage
Here is an example of using the File source connecter.-
Pull a Pulsar image.
-
Start Pulsar standalone.
-
Create a configuration file file-connector.yaml.
-
Copy the configuration file file-connector.yaml to the container.
-
Download the File source connector.
-
Start the File source connector.
-
Start a consumer.
-
Write the message to the file test.txt.
The following information appears on the consumer terminal window.