fujianhua168 opened a new issue, #1441:
URL: https://github.com/apache/incubator-paimon/issues/1441

   ### Search before asking
   
   - [X] I searched in the 
[issues](https://github.com/apache/incubator-paimon/issues) and found nothing 
similar.
   
   
   ### Motivation
   
      Due to the difference in data rows number between tables in the a MySQL 
database, we hope to customize some table parameters (such as bucket, sink 
parallelism, etc)  during the synchronization of the entire CDC database .
   
   as shown below:
   orginal code :
   `<FLINK_HOME>/bin/flink run \
       /path/to/paimon-flink-action-0.5-SNAPSHOT.jar \
       mysql-sync-database \
       --warehouse hdfs:///path/to/warehouse \
       --database test_db \
       --mysql-conf hostname=127.0.0.1 \
       --mysql-conf username=root \
       --mysql-conf password=123456 \
       --mysql-conf database-name=source_db \
       --catalog-conf metastore=hive \
       --catalog-conf uri=thrift://hive-metastore:9083 \
       --table-conf bucket=1 \
       --table-conf changelog-producer=input \
       --table-conf sink.parallelism=1 \
       --including-tables 'product|user|address|order'`
   
   add some extral table conf params like "--including-tables-buckets" and 
“--including-tables-sink.parallelism” :
   `<FLINK_HOME>/bin/flink run \
       /path/to/paimon-flink-action-0.5-SNAPSHOT.jar \
       mysql-sync-database \
       --warehouse hdfs:///path/to/warehouse \
       --database test_db \
       --mysql-conf hostname=127.0.0.1 \
       --mysql-conf username=root \
       --mysql-conf password=123456 \
       --mysql-conf database-name=source_db \
       --catalog-conf metastore=hive \
       --catalog-conf uri=thrift://hive-metastore:9083 \
       --table-conf bucket=1 \
       --table-conf changelog-producer=input \
       --table-conf sink.parallelism=1 \
       --including-tables 'product|user|address|order' \
       **--including-tables-buckets 'user:2|order:3'** \
       **--including-tables-sink.parallelism 'order:3'**`
   
   
   ### Solution
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
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]

Reply via email to