Socket
Last updated
Last updated
Socket source connector
Used to read data from Socket.
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.
STRING
SHORT
INT
BIGINT
BOOLEAN
DOUBLE
DECIMAL
FLOAT
DATE
TIME
TIMESTAMP
BYTES
ARRAY
MAP
host
String
Yes
_
socket server host
port
Integer
Yes
_
socket server port
common-options
no
-
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
Source plugin common parameters, please refer to for details.