FakeStream
Source plugin : FakeStream [Spark]
Descriptionâ
FakeStream
is mainly used to conveniently generate user-specified data, which is used as input for functional verification, testing, and performance testing of seatunnel.
Optionsâ
name | type | required | default value |
---|---|---|---|
content | array | no | - |
rate | number | yes | - |
common-options | string | yes | - |
content [array]â
List of test data strings
rate [number]â
Number of test cases generated per second
common options [string]â
Source plugin common parameters, please refer to Source Plugin for details
Examplesâ
fakeStream {
content = ['name=ricky&age=23', 'name=gary&age=28']
rate = 5
}
The generated data is as follows, randomly extract the string from the content
list
+-----------------+
|raw_message |
+-----------------+
|name=gary&age=28 |
|name=ricky&age=23|
+-----------------+