Socket

Socket source connector

Key featuresarrow-up-right

Used to read data from Socket.

Data Type Mappingarrow-up-right

The File does not have a specific type list, and we can indicate which Nexus data type the corresponding data needs to be converted to by specifying the Schema in the config.

Nexus Data type

STRING

SHORT

INT

BIGINT

BOOLEAN

DOUBLE

DECIMAL

FLOAT

DATE

TIME

TIMESTAMP

BYTES

ARRAY

MAP

Name
Type
Required
Default
Description

host

String

Yes

_

socket server host

port

Integer

Yes

_

socket server port

common-options

no

-

Source plugin common parameters, please refer to Source Common Options for details.

How to Create a Socket Data Synchronization Jobsarrow-up-right

  • Configuring the Nexus config file

The following example demonstrates how to create a data synchronization job that reads data from Socket and prints it on the local client:

  • Start a port listening

  • Start a Nexus task

  • Socket Source send test data

  • Console Sink print data

Last updated