Skip to main content
The File source connector pulls messages from files in directories and persists the messages to Pulsar topics.

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.
  1. Pull a Pulsar image.
  2. Start Pulsar standalone.
  3. Create a configuration file file-connector.yaml.
  4. Copy the configuration file file-connector.yaml to the container.
  5. Download the File source connector.
  6. Start the File source connector.
  7. Start a consumer.
  8. Write the message to the file test.txt.
    The following information appears on the consumer terminal window.