Skip to main content
The Netty source connector opens a port that accepts incoming data via the configured network protocol and publish it to user-defined Pulsar topics. This connector can be used in a containerized (for example, k8s) deployment. Otherwise, if the connector is running in process or thread mode, the instance may be conflicting on listening to ports.

Configuration

The configuration of the Netty source connector has the following properties.

Property

Example

Before using the Netty source connector, you need to create a configuration file through one of the following methods.
  • JSON
  • YAML

Usage

The following examples show how to use the Netty source connector with TCP and HTTP.

TCP

  1. Start Pulsar standalone.
  2. Create a configuration file netty-source-config.yaml.
  3. Copy the configuration file netty-source-config.yaml to Pulsar server.
  4. Download the Netty source connector.
  5. Start the Netty source connector.
  6. Consume data.
  7. Open another terminal window to send data to the Netty source.
  8. The following information appears on the consumer terminal window.

HTTP

  1. Start Pulsar standalone.
  2. Create a configuration file netty-source-config.yaml.
  3. Copy the configuration file netty-source-config.yaml to Pulsar server.
  4. Download the Netty source connector.
  5. Start the Netty source connector.
  6. Consume data.
  7. Open another terminal window to send data to the Netty source.
  8. The following information appears on the consumer terminal window.