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/09/16 19:22:31 UTC

[GitHub] [iceberg] asheeshgarg opened a new issue, #5779: Update Iceberg metadata in case of DR

asheeshgarg opened a new issue, #5779:
URL: https://github.com/apache/iceberg/issues/5779

   ### Query engine
   
   Spark
   
   ### Question
   
   Lets say  we have a DR Situation where we like to up the iceberg metadata and data copied to DR location. Since s3 buckets are global namespaces we will have different bucket names in DR locations.
   How to rename the metadata so that it start pointing to the correct location of the DR s3 location? Do we have any util or spark procedure for it?
   
    


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


[GitHub] [iceberg] asheeshgarg commented on issue #5779: Update Iceberg metadata in case of DR

Posted by GitBox <gi...@apache.org>.
asheeshgarg commented on issue #5779:
URL: https://github.com/apache/iceberg/issues/5779#issuecomment-1251361309

   @singhpk234 so jus to understand it correctly we will define two buckets for cross region  
   --conf spark.sql.catalog.test.s3.access-points.my-bucket1=arn:aws-reigon1
   --conf spark.sql.catalog.test.s3.access-points.my-bucket2=arn:aws:s3-reigon2
   
   and iceberg take care of replicating it across region and we just need to start the metastore in new region and it will work. Is this correct understanding


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


[GitHub] [iceberg] asheeshgarg commented on issue #5779: Update Iceberg metadata in case of DR

Posted by GitBox <gi...@apache.org>.
asheeshgarg commented on issue #5779:
URL: https://github.com/apache/iceberg/issues/5779#issuecomment-1251155824

   Can we use migrate_table procedure for this to specify the s3 path that points to the destination location


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


[GitHub] [iceberg] asheeshgarg commented on issue #5779: Update Iceberg metadata in case of DR

Posted by GitBox <gi...@apache.org>.
asheeshgarg commented on issue #5779:
URL: https://github.com/apache/iceberg/issues/5779#issuecomment-1249737248

   Just seen this thread https://github.com/apache/iceberg/issues/1617


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


[GitHub] [iceberg] github-actions[bot] commented on issue #5779: Update Iceberg metadata in case of DR

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5779:
URL: https://github.com/apache/iceberg/issues/5779#issuecomment-1498316196

   This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'


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


[GitHub] [iceberg] singhpk234 commented on issue #5779: Update Iceberg metadata in case of DR

Posted by GitBox <gi...@apache.org>.
singhpk234 commented on issue #5779:
URL: https://github.com/apache/iceberg/issues/5779#issuecomment-1251952574

   yes, if you map both the bucket (present in different region) to a multi-region access-point.
   
   can ref to this slack thread as well, where this idea originated : https://apache-iceberg.slack.com/archives/C025PH0G1D4/p1645066803099319
   
   > Reigon1 meta data will be replaced by mybuket1 actual pointer of s3 in metadata
   Region2 meta data will be replaced by mybuket2 actual pointer of s3 in metadata
   
   No, Let's say your table path is  under `mybucket1` so both mybucket1 in region1  and mybucket2 and region2 will have paths of `mybucket1`, inside the metadata files. It just at the time of  S3 (GET / PUT) call we will replace mybucket1 reference with multi-region access point.
   
   Now if you can use both a mutli-region access-point pointing to mybucket1, and mybucket2. it acts a proxy and single global hostname between two and internally routes the request to location with lowest latency...
   
   More about access-points here https://aws.amazon.com/s3/features/multi-region-access-points/
   


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


[GitHub] [iceberg] singhpk234 commented on issue #5779: Update Iceberg metadata in case of DR

Posted by GitBox <gi...@apache.org>.
singhpk234 commented on issue #5779:
URL: https://github.com/apache/iceberg/issues/5779#issuecomment-1251327554

   @asheeshgarg 
   
   The metadata files will still be pointing to my-bucket1 (actual s3 path) but while making s3 request via Iceberg (GET + PUT) the [my-bucket1 path will be replaced by access-point](https://github.com/apache/iceberg/pull/4334/files#diff-d07cc67581f20b5cc32bca11aad5f04ac98259729ecebc176909955bc3af03d7R80). Now access point will take care of replication across buckets configured and choose the best available low latency bucket behind the access point.


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


[GitHub] [iceberg] github-actions[bot] closed issue #5779: Update Iceberg metadata in case of DR

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #5779: Update Iceberg metadata in case of DR
URL: https://github.com/apache/iceberg/issues/5779


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


[GitHub] [iceberg] asheeshgarg closed issue #5779: Update Iceberg metadata in case of DR

Posted by GitBox <gi...@apache.org>.
asheeshgarg closed issue #5779: Update Iceberg metadata in case of DR
URL: https://github.com/apache/iceberg/issues/5779


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


[GitHub] [iceberg] singhpk234 commented on issue #5779: Update Iceberg metadata in case of DR

Posted by GitBox <gi...@apache.org>.
singhpk234 commented on issue #5779:
URL: https://github.com/apache/iceberg/issues/5779#issuecomment-1251237802

   @asheeshgarg, will [s3 access-points for iceberg](https://iceberg.apache.org/docs/latest/aws/#s3-access-points), work for your use case ?


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


[GitHub] [iceberg] asheeshgarg commented on issue #5779: Update Iceberg metadata in case of DR

Posted by GitBox <gi...@apache.org>.
asheeshgarg commented on issue #5779:
URL: https://github.com/apache/iceberg/issues/5779#issuecomment-1251295330

   @singhpk234  s3 access points are still region specific Access point ARNs use the format arn:aws:s3:region:account-id:accesspoint/resource
   For DR we have a different region. If we set use-arn-region-enabled catalog property to true does it not consider the region as part of arn?


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


[GitHub] [iceberg] github-actions[bot] commented on issue #5779: Update Iceberg metadata in case of DR

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5779:
URL: https://github.com/apache/iceberg/issues/5779#issuecomment-1475449424

   This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.


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