跳到主要内容
版本:2.1.0

Console

Sink plugin : Console [Spark]

Description

Output data to standard output/terminal, which is often used for debugging, which makes it easy to observe the data.

Options

nametyperequireddefault valueengine
limitnumberno100batch/spark streaming
serializerstringnoplainbatch/spark streaming
common-optionsstringno-all streaming

limit [number]

Limit the number of rows to be output, the legal range is [-1, 2147483647] , -1 means that the output is up to 2147483647 rows

serializer [string]

The format of serialization when outputting. Available serializers include: json , plain

common options [string]

Sink plugin common parameters, please refer to Sink Plugin for details

Examples

console {
limit = 10
serializer = "json"
}

Output 10 pieces of data in Json format