-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'apache:dev' into dev-fix-sink-multi-table-path
- Loading branch information
Showing
206 changed files
with
13,967 additions
and
2,375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
hazelcast: | ||
cluster-name: seatunnel | ||
network: | ||
rest-api: | ||
enabled: true | ||
endpoint-groups: | ||
CLUSTER_WRITE: | ||
enabled: true | ||
DATA: | ||
enabled: true | ||
join: | ||
tcp-ip: | ||
enabled: true | ||
member-list: | ||
- localhost:5801 | ||
- localhost:5802 | ||
port: | ||
auto-increment: false | ||
port: 5801 | ||
properties: | ||
hazelcast.invocation.max.retry.count: 20 | ||
hazelcast.tcp.join.port.try.count: 30 | ||
hazelcast.logging.type: log4j2 | ||
hazelcast.operation.generic.thread.count: 50 | ||
hazelcast.heartbeat.failuredetector.type: phi-accrual | ||
hazelcast.heartbeat.interval.seconds: 2 | ||
hazelcast.max.no.heartbeat.seconds: 180 | ||
hazelcast.heartbeat.phiaccrual.failuredetector.threshold: 10 | ||
hazelcast.heartbeat.phiaccrual.failuredetector.sample.size: 200 | ||
hazelcast.heartbeat.phiaccrual.failuredetector.min.std.dev.millis: 100 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
hazelcast: | ||
cluster-name: seatunnel | ||
network: | ||
join: | ||
tcp-ip: | ||
enabled: true | ||
member-list: | ||
- localhost:5801 | ||
- localhost:5802 | ||
port: | ||
auto-increment: false | ||
port: 5802 | ||
properties: | ||
hazelcast.invocation.max.retry.count: 20 | ||
hazelcast.tcp.join.port.try.count: 30 | ||
hazelcast.logging.type: log4j2 | ||
hazelcast.operation.generic.thread.count: 50 | ||
hazelcast.heartbeat.failuredetector.type: phi-accrual | ||
hazelcast.heartbeat.interval.seconds: 2 | ||
hazelcast.max.no.heartbeat.seconds: 180 | ||
hazelcast.heartbeat.phiaccrual.failuredetector.threshold: 10 | ||
hazelcast.heartbeat.phiaccrual.failuredetector.sample.size: 200 | ||
hazelcast.heartbeat.phiaccrual.failuredetector.min.std.dev.millis: 100 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
# JVM Heap | ||
-Xms2g | ||
-Xmx2g | ||
|
||
# JVM Dump | ||
-XX:+HeapDumpOnOutOfMemoryError | ||
-XX:HeapDumpPath=/tmp/seatunnel/dump/zeta-server | ||
|
||
# Metaspace | ||
-XX:MaxMetaspaceSize=2g | ||
|
||
# G1GC | ||
-XX:+UseG1GC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
# JVM Heap | ||
-Xms2g | ||
-Xmx2g | ||
|
||
# JVM Dump | ||
-XX:+HeapDumpOnOutOfMemoryError | ||
-XX:HeapDumpPath=/tmp/seatunnel/dump/zeta-server | ||
|
||
# Metaspace | ||
-XX:MaxMetaspaceSize=2g | ||
|
||
# G1GC | ||
-XX:+UseG1GC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# Hudi | ||
|
||
> Hudi sink connector | ||
## Description | ||
|
||
Used to write data to Hudi. | ||
|
||
## Key features | ||
|
||
- [x] [exactly-once](../../concept/connector-v2-features.md) | ||
- [x] [cdc](../../concept/connector-v2-features.md) | ||
|
||
## Options | ||
|
||
| name | type | required | default value | | ||
|----------------------------|--------|----------|---------------| | ||
| table_name | string | yes | - | | ||
| table_dfs_path | string | yes | - | | ||
| conf_files_path | string | no | - | | ||
| record_key_fields | string | no | - | | ||
| partition_fields | string | no | - | | ||
| table_type | enum | no | copy_on_write | | ||
| op_type | enum | no | insert | | ||
| batch_interval_ms | Int | no | 1000 | | ||
| insert_shuffle_parallelism | Int | no | 2 | | ||
| upsert_shuffle_parallelism | Int | no | 2 | | ||
| min_commits_to_keep | Int | no | 20 | | ||
| max_commits_to_keep | Int | no | 30 | | ||
| common-options | config | no | - | | ||
|
||
### table_name [string] | ||
|
||
`table_name` The name of hudi table. | ||
|
||
### table_dfs_path [string] | ||
|
||
`table_dfs_path` The dfs root path of hudi table,such as 'hdfs://nameserivce/data/hudi/hudi_table/'. | ||
|
||
### table_type [enum] | ||
|
||
`table_type` The type of hudi table. The value is 'copy_on_write' or 'merge_on_read'. | ||
|
||
### conf_files_path [string] | ||
|
||
`conf_files_path` The environment conf file path list(local path), which used to init hdfs client to read hudi table file. The example is '/home/test/hdfs-site.xml;/home/test/core-site.xml;/home/test/yarn-site.xml'. | ||
|
||
### op_type [enum] | ||
|
||
`op_type` The operation type of hudi table. The value is 'insert' or 'upsert' or 'bulk_insert'. | ||
|
||
### batch_interval_ms [Int] | ||
|
||
`batch_interval_ms` The interval time of batch write to hudi table. | ||
|
||
### insert_shuffle_parallelism [Int] | ||
|
||
`insert_shuffle_parallelism` The parallelism of insert data to hudi table. | ||
|
||
### upsert_shuffle_parallelism [Int] | ||
|
||
`upsert_shuffle_parallelism` The parallelism of upsert data to hudi table. | ||
|
||
### min_commits_to_keep [Int] | ||
|
||
`min_commits_to_keep` The min commits to keep of hudi table. | ||
|
||
### max_commits_to_keep [Int] | ||
|
||
`max_commits_to_keep` The max commits to keep of hudi table. | ||
|
||
### common options | ||
|
||
Source plugin common parameters, please refer to [Source Common Options](common-options.md) for details. | ||
|
||
## Examples | ||
|
||
```hocon | ||
source { | ||
Hudi { | ||
table_dfs_path = "hdfs://nameserivce/data/hudi/hudi_table/" | ||
table_type = "copy_on_write" | ||
conf_files_path = "/home/test/hdfs-site.xml;/home/test/core-site.xml;/home/test/yarn-site.xml" | ||
use.kerberos = true | ||
kerberos.principal = "test_user@xxx" | ||
kerberos.principal.file = "/home/test/test_user.keytab" | ||
} | ||
} | ||
``` | ||
|
||
## Changelog | ||
|
||
### 2.2.0-beta 2022-09-26 | ||
|
||
- Add Hudi Source Connector | ||
|
Oops, something went wrong.