title: “Clone To Paimon” weight: 5 type: docs aliases:
Clone supports cloning tables to Paimon tables.
OVERWRITE semantic that will overwrite the partitions of the target table according to the data.Currently, clone supports:
The source table below is currently under development:
<FLINK_HOME>/flink run ./paimon-flink-action-{{< version >}}.jar \ clone \ --database default \ --table hivetable \ --catalog_conf metastore=hive \ --catalog_conf uri=thrift://localhost:9088 \ --target_database test \ --target_table test_table \ --target_catalog_conf warehouse=my_warehouse \ --parallelism 10 \ --where <filter_spec>
You can use filter spec to specify the filtering condition for the partition.
<FLINK_HOME>/flink run ./paimon-flink-action-{{< version >}}.jar \ clone \ --database default \ --catalog_conf metastore=hive \ --catalog_conf uri=thrift://localhost:9088 \ --target_database test \ --parallelism 10 \ --target_catalog_conf warehouse=my_warehouse --included_tables <included_tables_spec> \ --excluded_tables <excluded_tables_spec>
“--included_tables” and “--excluded_tables” are optional parameters, which are used to specify the tables that need or don't need to be cloned. The format is <database1>.<table1>,<database2>.<table2>,<database3>.<table3>. “--excluded_tables” has higher priority than “--included_tables” if you specified both.
<FLINK_HOME>/flink run ./paimon-flink-action-{{< version >}}.jar \ clone \ --catalog_conf metastore=hive \ --catalog_conf uri=thrift://localhost:9088 \ --parallelism 10 \ --target_catalog_conf warehouse=my_warehouse \ --included_tables <included_tables_spec> \ --excluded_tables <excluded_tables_spec>
“--included_tables” and “--excluded_tables” are optional parameters, which are used to specify the tables that need or don't need to be cloned. The format is <database1>.<table1>,<database2>.<table2>,<database3>.<table3>. “--excluded_tables” has higher priority than “--included_tables” if you specified both.
Clone Hudi needs dependency: hudi-flink1.18-bundle-0.15.0.jar
The execution method is the same as the Hive table mentioned above.
Clone Iceberg needs dependency: iceberg-flink-runtime-1.20-1.8.1.jar
The execution method is the same as the Hive table mentioned above.