Fake
Input plugin : Fakeâ
- Author: InterestingLab
- Homepage: https://interestinglab.github.io/seatunnel-docs
- Version: 1.1.0
Descriptionâ
Input plugin for producing test data.
Optionsâ
name | type | required | default value |
---|---|---|---|
data_format | string | no | text |
json_keys | array | no | - |
num_of_fields | number | no | 10 |
rate | number | yes | - |
text_delimeter | string | no | , |
data_format [string]â
The format of test data, supports text
and json
json_keys [array]â
The list of JSON data's key, used when data_format
is json
num_of_fields [number]â
The number of fields, used when data_format
is text
rate [number]â
The number of test data produced per second
text_delimiter [string]â
Text data separator, used when data_format
is text
Examplesâ
With
data_format
fake {
data_format = "text"
text_delimeter = ","
num_of_fields = 5
rate = 5
}
Input
+-------------------------------------------------------------------------------------------+
|raw_message |
+-------------------------------------------------------------------------------------------+
|Random1-1462437280,Random215896330,Random3-2009195549,Random41027365838,Random51525395111 |
|Random1-2135047059,Random2-1030689538,Random3-854912064,Random4126768642,Random5-1483841750|
+-------------------------------------------------------------------------------------------+
Without
data_format
fake {
content = ['name=ricky&age=23', 'name=gary&age=28']
rate = 5
}
Input
+-----------------+
|raw_message |
+-----------------+
|name=gary&age=28 |
|name=ricky&age=23|
+-----------------+Randomly extract the string from the
content
list