Print Connector V1


Print Connector V1

Parent document: connectors

BitSail The Print write connector prints the data from the upstream, which can be seen in the Stdout of the Flink Task Manager.

Maven dependency

<dependency>
    <groupId>com.bytedance.bitsail</groupId>
    <artifactId>connector-print</artifactId>
    <version>${revision}</version>
</dependency>

Supported data type

The Print connector has no restrictions on data types

Parameters

The following mentioned parameters should be added to job.writer block when using, for example:

{
  "job": {
    "writer": {
      "class": "com.bytedance.bitsail.connector.print.sink.PrintSink",
      "sample_write": true,
      "sample_limit": 10
    }
  }
}

Necessary parameters

Param nameRequiredOptional valueDescription
classyesPrint writer class name, com.bytedance.bitsail.connector.print.sink.PrintSink

Optional parameters

Param nameRequiredOptional valueDescriptionDefault value
sample_writenoWrite the sampling result to the logfalse
sample_limitnoSampling frequency5

Configuration examples: print-connector-example