XBaith commented on issue #5947:
URL: https://github.com/apache/iceberg/issues/5947#issuecomment-1275712429
Migrate iceberg between different data center:
For version 1 table: you can just load the data files into Spark dataset
and then write into target table.
For version 2 table: config different cluster Spark catalog like this:
```
.config("spark.sql.catalog.hive_prod_src", classOf[SparkCatalog].getName)
.config("spark.sql.catalog.hive_prod_src.type", "hive")
.config("spark.sql.catalog.hive_prod_src.uri", $hiveMetaStores1)
.config("spark.sql.catalog.hive_prod_dst", classOf[SparkCatalog].getName)
.config("spark.sql.catalog.hive_prod_dst.type", "hive")
.config("spark.sql.catalog.hive_prod_dst.uri", $hiveMetaStores2)
```
read and write iceberg data by Spark SQL.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]