2
2
3
3
> Socket sink connector
4
4
5
- ## Description
5
+ ## Support Those Engines
6
6
7
- Used to send data to Socket Server. Both support streaming and batch mode.
8
-
9
- > For example, if the data from upstream is [ ` age: 12, name: jared ` ] , the content send to socket server is the following: ` {"name":"jared","age":17} `
7
+ > Spark< br />
8
+ > Flink< br />
9
+ > SeaTunnel Zeta< br />
10
10
11
11
## Key features
12
12
13
13
- [ ] [ exactly-once] ( ../../concept/connector-v2-features.md )
14
14
15
- ## Options
16
-
17
- | name | type | required | default value |
18
- | ----------------| ---------| ----------| ---------------|
19
- | host | String | Yes | |
20
- | port | Integer | yes | |
21
- | max_retries | Integer | No | 3 |
22
- | common-options | | no | - |
23
-
24
- ### host [ string]
25
-
26
- socket server host
27
-
28
- ### port [ integer]
29
-
30
- socket server port
31
-
32
- ### max_retries [ integer]
33
-
34
- The number of retries to send record failed
35
-
36
- ### common options
15
+ ## Description
37
16
38
- Sink plugin common parameters, please refer to [ Sink Common Options ] ( common-options.md ) for details
17
+ Used to send data to Socket Server. Both support streaming and batch mode.
39
18
40
- ## Example
19
+ > For example, if the data from upstream is [ ` age: 12, name: jared ` ] , the content send to socket server is the following: ` {"name":"jared","age":17} `
41
20
42
- simple:
21
+ ## Sink Options
43
22
44
- ``` hocon
45
- Socket {
46
- host = "localhost"
47
- port = 9999
48
- }
49
- ```
23
+ | Name | Type | Required | Default | Description |
24
+ | ---------------- | --------- | ---------- | --------- | --------------------------------------------------------------------------------------------------------- |
25
+ | host | String | Yes | | socket server host |
26
+ | port | Integer | Yes | | socket server port |
27
+ | max_retries | Integer | No | 3 | The number of retries to send record failed |
28
+ | common-options | | No | - | Source plugin common parameters, please refer to [ Source Common Options ] ( common-options.md ) for details |
50
29
51
- test:
30
+ ## Task Example
52
31
53
- * Configuring the SeaTunnel config file
32
+ > This is randomly generated data written to the Socket side
54
33
55
34
``` hocon
56
35
env {
@@ -59,24 +38,23 @@ env {
59
38
}
60
39
61
40
source {
62
- FakeSource {
63
- result_table_name = "fake"
64
- schema = {
65
- fields {
66
- name = "string"
67
- age = "int"
68
- }
41
+ FakeSource {
42
+ result_table_name = "fake"
43
+ schema = {
44
+ fields {
45
+ name = "string"
46
+ age = "int"
69
47
}
70
48
}
49
+ }
71
50
}
72
51
73
52
sink {
74
- Socket {
75
- host = "localhost"
76
- port = 9999
77
- }
53
+ Socket {
54
+ host = "localhost"
55
+ port = 9999
56
+ }
78
57
}
79
-
80
58
```
81
59
82
60
* Start a port listening
0 commit comments