jiangzzwy commented on issue #9917:
URL: https://github.com/apache/hudi/issues/9917#issuecomment-1779243714
```shell
SET 'execution.runtime-mode' = 'streaming';
SET 'sql-client.execution.result-mode' = 'table';
SET 'sql-client.execution.max-table-result.rows' = '10000';
SET 'parallelism.default' = '1';
SET 'pipeline.auto-watermark-interval' = '200';
SET 'pipeline.max-parallelism' = '10';
SET 'table.exec.state.ttl' = '1000';
SET 'restart-strategy.type' = 'fixed-delay';
SET 'table.optimizer.join-reorder-enabled' = 'true';
SET 'table.exec.spill-compression.enabled' = 'true';
SET 'table.exec.spill-compression.block-size' = '128kb';
SET 'state.checkpoints.dir' = 'hdfs:///hudi/checkpoints/';
SET 'execution.checkpointing.mode' = 'EXACTLY_ONCE';
SET 'execution.checkpointing.interval' = '10 s';
SET 'execution.checkpointing.min-pause' = '1 s';
SET 'execution.checkpointing.max-concurrent-checkpoints' = '1';
SET 'execution.checkpointing.prefer-checkpoint-for-recovery' = 'true';
CREATE TABLE t_user (
id INT,
name STRING,
age INT,
sex BOOLEAN,
birth DATE,
PRIMARY KEY (id) NOT ENFORCED
) PARTITIONED BY (birth)
WITH (
'connector' = 'hudi',
'path' = 'hdfs://CentOS:9000/hudi/warehouse/t_user',
'table.type' = 'MERGE_ON_READ',
'hive_sync.enabled' = 'true',
'hive_sync.auto_create_db' = 'true',
'hive_sync.mode' = 'HMS',
'hive_sync.db' = 'stg',
'hive_sync.table' = 't_user',
'hive_sync.metastore.uris' = 'thrift://CentOS:9083',
'hoodie.datasource.write.hive_style_partitioning'='true',
'hoodie.datasource.write.partitionpath.field'='birth',
'hoodie.datasource.write.recordkey.field'='id',
'hoodie.datasource.hive_sync.assume_date_partitioning'='true',
'write.partition.format'='yyyy-MM-dd',
'hoodie.datasource.hive_sync.create_managed_table'='true',
'compaction.tasks'='3',
'compaction.delta_seconds'='3600',
'compaction.delta_commits'='5',
'compaction.trigger.strategy'='num_or_time',
'hoodie.metadata.log.compaction.enable'='true',
'hoodie.clean.async'='true',
'hoodie.clean.automatic'='true',
'hoodie.clean.trigger.strategy'='NUM_COMMITS',
'hoodie.clean.max.commits'='1000',
'clean.policy'='KEEP_LATEST_COMMITS',
'hoodie.cleaner.commits.retained'='100',
'read.streaming.enabled'='true',
'read.streaming.check-interval'='60',
'read.start-commit'='20231025001021',
'hoodie.index.type' = 'BUCKET',
'hoodie.bucket.index.hash.field' = 'id'
);
CREATE TABLE t_user_datagen (
id INT,
name STRING,
age INT,
sex BOOLEAN,
birth DATE
)
WITH (
'connector' = 'datagen',
'rows-per-second'='1'
);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]