You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/10/12 07:28:01 UTC

[GitHub] [iceberg] XBaith commented on issue #5947: [Hadoop] [Iceberg] How to change hadoop location from iceberg metadata

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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org