File tree 6 files changed +11
-11
lines changed
seatunnel-connectors-v2/connector-redis/src/main/java/org/apache/seatunnel/connectors/seatunnel/redis/config
6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ Used to write data to Redis.
14
14
15
15
| name | type | required | default value |
16
16
| --------------------| ---------| -----------------------| ---------------|
17
- | host | string | yes | - |
18
- | port | int | yes | - |
17
+ | host | string | yes when mode=single | - |
18
+ | port | int | no | 6379 |
19
19
| key | string | yes | - |
20
20
| data_type | string | yes | - |
21
21
| batch_size | int | no | 10 |
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ Used to read data from Redis.
18
18
## Options
19
19
20
20
| name | type | required | default value |
21
- | ------------------- | ------ | --------------------- | ------------- |
22
- | host | string | yes | - |
23
- | port | int | yes | - |
21
+ | ------------------- | ------ | ----------------------- | ------------- |
22
+ | host | string | yes when mode=single | - |
23
+ | port | int | no | 6379 |
24
24
| keys | string | yes | - |
25
25
| batch_size | int | yes | 10 |
26
26
| data_type | string | yes | - |
Original file line number Diff line number Diff line change 14
14
15
15
| name | type | required | default value |
16
16
| --------------------| ---------| -----------------------| ---------------|
17
- | host | string | yes | - |
18
- | port | int | yes | - |
17
+ | host | string | ` mode=single ` 时必须 | - |
18
+ | port | int | no | 6379 |
19
19
| key | string | yes | - |
20
20
| data_type | string | yes | - |
21
21
| batch_size | int | no | 10 |
Original file line number Diff line number Diff line change 19
19
20
20
| 名称 | 类型 | 是否必须 | 默认值 |
21
21
| ---------------------| --------| --------------------| --------|
22
- | host | string | 是 | - |
23
- | port | int | 是 | - |
22
+ | host | string | ` mode=single ` 时必须 | - |
23
+ | port | int | 否 | 6379 |
24
24
| keys | string | 是 | - |
25
25
| batch_size | int | 是 | 10 |
26
26
| data_type | string | 是 | - |
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public enum RedisMode {
38
38
.withDescription ("redis hostname or ip" );
39
39
40
40
public static final Option <Integer > PORT =
41
- Options .key ("port" ).intType ().noDefaultValue ( ).withDescription ("redis port" );
41
+ Options .key ("port" ).intType ().defaultValue ( 6379 ).withDescription ("redis port" );
42
42
43
43
public static final Option <String > AUTH =
44
44
Options .key ("auth" )
Original file line number Diff line number Diff line change 46
46
@ Slf4j
47
47
public class RedisParameters implements Serializable {
48
48
private String host ;
49
- private int port ;
49
+ private Integer port ;
50
50
private String auth = "" ;
51
51
private int dbNum ;
52
52
private String user = "" ;
You can’t perform that action at this time.
0 commit comments