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â
name | type | required | default value | engine |
---|---|---|---|---|
limit | number | no | 100 | batch/spark streaming |
serializer | string | no | plain | batch/spark streaming |
common-options | string | no | - | 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