[HUDI-3480][HUDI-3481] Enchancements to integ test suite (#4884)
This commit is contained in:
committed by
GitHub
parent
2a93b8efb2
commit
62605be413
@@ -41,17 +41,6 @@ dag_content:
|
|||||||
num_records_insert: 300
|
num_records_insert: 300
|
||||||
deps: second_insert
|
deps: second_insert
|
||||||
type: InsertNode
|
type: InsertNode
|
||||||
first_hive_sync:
|
|
||||||
config:
|
|
||||||
queue_name: "adhoc"
|
|
||||||
engine: "mr"
|
|
||||||
type: HiveSyncNode
|
|
||||||
deps: third_insert
|
|
||||||
first_validate:
|
|
||||||
config:
|
|
||||||
validate_hive: false
|
|
||||||
type: ValidateDatasetNode
|
|
||||||
deps: first_hive_sync
|
|
||||||
first_upsert:
|
first_upsert:
|
||||||
config:
|
config:
|
||||||
record_size: 1000
|
record_size: 1000
|
||||||
@@ -61,7 +50,7 @@ dag_content:
|
|||||||
num_records_upsert: 100
|
num_records_upsert: 100
|
||||||
num_partitions_upsert: 1
|
num_partitions_upsert: 1
|
||||||
type: UpsertNode
|
type: UpsertNode
|
||||||
deps: first_validate
|
deps: third_insert
|
||||||
first_delete:
|
first_delete:
|
||||||
config:
|
config:
|
||||||
num_partitions_delete: 50
|
num_partitions_delete: 50
|
||||||
|
|||||||
@@ -0,0 +1,81 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
# to be used with test-aggressive-clean-archival.properties
|
||||||
|
|
||||||
|
dag_name: deltastreamer-long-running-multi-partitions.yaml
|
||||||
|
dag_rounds: 20
|
||||||
|
dag_intermittent_delay_mins: 1
|
||||||
|
dag_content:
|
||||||
|
first_insert:
|
||||||
|
config:
|
||||||
|
record_size: 1000
|
||||||
|
num_partitions_insert: 5
|
||||||
|
repeat_count: 1
|
||||||
|
num_records_insert: 1000
|
||||||
|
type: InsertNode
|
||||||
|
deps: none
|
||||||
|
second_insert:
|
||||||
|
config:
|
||||||
|
record_size: 1000
|
||||||
|
num_partitions_insert: 50
|
||||||
|
repeat_count: 1
|
||||||
|
num_records_insert: 10000
|
||||||
|
deps: first_insert
|
||||||
|
type: InsertNode
|
||||||
|
third_insert:
|
||||||
|
config:
|
||||||
|
record_size: 1000
|
||||||
|
num_partitions_insert: 2
|
||||||
|
repeat_count: 1
|
||||||
|
num_records_insert: 300
|
||||||
|
deps: second_insert
|
||||||
|
type: InsertNode
|
||||||
|
first_upsert:
|
||||||
|
config:
|
||||||
|
record_size: 1000
|
||||||
|
num_partitions_insert: 2
|
||||||
|
num_records_insert: 300
|
||||||
|
repeat_count: 1
|
||||||
|
num_records_upsert: 100
|
||||||
|
num_partitions_upsert: 1
|
||||||
|
type: UpsertNode
|
||||||
|
deps: third_insert
|
||||||
|
first_delete:
|
||||||
|
config:
|
||||||
|
num_partitions_delete: 50
|
||||||
|
num_records_delete: 8000
|
||||||
|
type: DeleteNode
|
||||||
|
deps: first_upsert
|
||||||
|
second_hive_sync:
|
||||||
|
config:
|
||||||
|
queue_name: "adhoc"
|
||||||
|
engine: "mr"
|
||||||
|
type: HiveSyncNode
|
||||||
|
deps: first_delete
|
||||||
|
second_validate:
|
||||||
|
config:
|
||||||
|
validate_hive: false
|
||||||
|
delete_input_data: false
|
||||||
|
type: ValidateDatasetNode
|
||||||
|
deps: second_hive_sync
|
||||||
|
last_validate:
|
||||||
|
config:
|
||||||
|
execute_itr_count: 20
|
||||||
|
validate_clean: true
|
||||||
|
validate_archival: true
|
||||||
|
type: ValidateAsyncOperations
|
||||||
|
deps: second_validate
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
hoodie.insert.shuffle.parallelism=100
|
||||||
|
hoodie.upsert.shuffle.parallelism=100
|
||||||
|
hoodie.bulkinsert.shuffle.parallelism=100
|
||||||
|
|
||||||
|
hoodie.cleaner.commits.retained=5
|
||||||
|
hoodie.keep.min.commits=9
|
||||||
|
hoodie.keep.max.commits=10
|
||||||
|
|
||||||
|
hoodie.deltastreamer.source.test.num_partitions=100
|
||||||
|
hoodie.deltastreamer.source.test.datagen.use_rocksdb_for_storing_existing_keys=false
|
||||||
|
hoodie.deltastreamer.source.test.max_unique_records=100000000
|
||||||
|
hoodie.embed.timeline.server=false
|
||||||
|
hoodie.deltastreamer.source.input.selector=org.apache.hudi.integ.testsuite.helpers.DFSTestSuitePathSelector
|
||||||
|
|
||||||
|
hoodie.deltastreamer.source.input.selector=org.apache.hudi.integ.testsuite.helpers.DFSTestSuitePathSelector
|
||||||
|
hoodie.datasource.hive_sync.skip_ro_suffix=true
|
||||||
|
|
||||||
|
hoodie.datasource.write.recordkey.field=_row_key
|
||||||
|
hoodie.datasource.write.keygenerator.class=org.apache.hudi.keygen.TimestampBasedKeyGenerator
|
||||||
|
hoodie.datasource.write.partitionpath.field=timestamp
|
||||||
|
|
||||||
|
hoodie.deltastreamer.source.dfs.root=/user/hive/warehouse/hudi-integ-test-suite/input
|
||||||
|
hoodie.deltastreamer.schemaprovider.target.schema.file=file:/var/hoodie/ws/docker/demo/config/test-suite/source.avsc
|
||||||
|
hoodie.deltastreamer.schemaprovider.source.schema.file=file:/var/hoodie/ws/docker/demo/config/test-suite/source.avsc
|
||||||
|
hoodie.deltastreamer.keygen.timebased.timestamp.type=UNIX_TIMESTAMP
|
||||||
|
hoodie.deltastreamer.keygen.timebased.output.dateformat=yyyy/MM/dd
|
||||||
|
|
||||||
|
hoodie.datasource.hive_sync.jdbcurl=jdbc:hive2://hiveserver:10000/
|
||||||
|
hoodie.datasource.hive_sync.database=testdb
|
||||||
|
hoodie.datasource.hive_sync.table=table1
|
||||||
|
hoodie.datasource.hive_sync.assume_date_partitioning=false
|
||||||
|
hoodie.datasource.hive_sync.partition_fields=_hoodie_partition_path
|
||||||
|
hoodie.datasource.hive_sync.partition_extractor_class=org.apache.hudi.hive.SlashEncodedDayPartitionValueExtractor
|
||||||
|
|
||||||
57
docker/demo/config/test-suite/test-clustering.properties
Normal file
57
docker/demo/config/test-suite/test-clustering.properties
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
hoodie.insert.shuffle.parallelism=100
|
||||||
|
hoodie.upsert.shuffle.parallelism=100
|
||||||
|
hoodie.bulkinsert.shuffle.parallelism=100
|
||||||
|
|
||||||
|
hoodie.deltastreamer.source.test.num_partitions=100
|
||||||
|
hoodie.deltastreamer.source.test.datagen.use_rocksdb_for_storing_existing_keys=false
|
||||||
|
hoodie.deltastreamer.source.test.max_unique_records=100000000
|
||||||
|
hoodie.embed.timeline.server=false
|
||||||
|
hoodie.deltastreamer.source.input.selector=org.apache.hudi.integ.testsuite.helpers.DFSTestSuitePathSelector
|
||||||
|
|
||||||
|
hoodie.deltastreamer.source.input.selector=org.apache.hudi.integ.testsuite.helpers.DFSTestSuitePathSelector
|
||||||
|
hoodie.datasource.hive_sync.skip_ro_suffix=true
|
||||||
|
|
||||||
|
hoodie.datasource.write.recordkey.field=_row_key
|
||||||
|
hoodie.datasource.write.keygenerator.class=org.apache.hudi.keygen.TimestampBasedKeyGenerator
|
||||||
|
hoodie.datasource.write.partitionpath.field=timestamp
|
||||||
|
|
||||||
|
hoodie.clustering.inline=true
|
||||||
|
hoodie.clustering.inline.max.commits=4
|
||||||
|
hoodie.clustering.plan.strategy.sort.columns=_hoodie_partition_path,_row_key
|
||||||
|
hoodie.clustering.plan.strategy.target.file.max.bytes=1073741824
|
||||||
|
hoodie.clustering.plan.strategy.small.file.limit=629145600
|
||||||
|
hoodie.clustering.execution.strategy.class=org.apache.hudi.client.clustering.run.strategy.SparkSortAndSizeExecutionStrategy
|
||||||
|
|
||||||
|
hoodie.deltastreamer.source.dfs.root=/user/hive/warehouse/hudi-integ-test-suite/input
|
||||||
|
hoodie.deltastreamer.schemaprovider.target.schema.file=file:/var/hoodie/ws/docker/demo/config/test-suite/source.avsc
|
||||||
|
hoodie.deltastreamer.schemaprovider.source.schema.file=file:/var/hoodie/ws/docker/demo/config/test-suite/source.avsc
|
||||||
|
hoodie.deltastreamer.keygen.timebased.timestamp.type=UNIX_TIMESTAMP
|
||||||
|
hoodie.deltastreamer.keygen.timebased.output.dateformat=yyyy/MM/dd
|
||||||
|
|
||||||
|
hoodie.datasource.hive_sync.jdbcurl=jdbc:hive2://hiveserver:10000/
|
||||||
|
hoodie.datasource.hive_sync.database=testdb
|
||||||
|
hoodie.datasource.hive_sync.table=table1
|
||||||
|
hoodie.datasource.hive_sync.assume_date_partitioning=false
|
||||||
|
hoodie.datasource.hive_sync.partition_fields=_hoodie_partition_path
|
||||||
|
hoodie.datasource.hive_sync.partition_extractor_class=org.apache.hudi.hive.SlashEncodedDayPartitionValueExtractor
|
||||||
|
|
||||||
Reference in New Issue
Block a user