You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "guykhazma (via GitHub)" <gi...@apache.org> on 2025/01/28 20:58:12 UTC

[I] Using tables created in Hive Catalog in Hadoop catalog [iceberg]

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

   ### Feature Request / Improvement
   
   We have a scenario where we have tables created with Hive Catalog and then in a separate application we would like to be able to define a Hadoop Catalog that shares the same warehouse location so that we can read the tables without having to setup a metastore.
   
   This is currently failing because Hadoop Catalog and Hive Catalog are using two different code paths for the naming of metadata files.
   Hadoop Catalog is using its [own function](https://github.com/apache/iceberg/blob/8e456aeeabd0a40b23864edadd622b45cb44572c/core/src/main/java/org/apache/iceberg/hadoop/HadoopTableOperations.java#L258) for getting the metadata path which concatenates the metadata version with the file extension resulting in a path like this:
   ```
   v1.metadata.json
   ```
   
   Hive Catalog on the other hand is using a [different function](https://github.com/apache/iceberg/blob/8e456aeeabd0a40b23864edadd622b45cb44572c/core/src/main/java/org/apache/iceberg/BaseMetastoreTableOperations.java#L321) which concatenates the version with UUID and then the file extension  resulting in a path like this:
   ```
   00000-f34d4846-3c7a-4967-a6fa-30e8cce6eeac.metadata.json
   ```
   
   I can submit a PR with a potential fix for this but I am not sure if there was a reason for having different naming convention between the two catalogs.
   
   ### Query engine
   
   Spark
   
   ### Willingness to contribute
   
   - [ ] I can contribute this improvement/feature independently
   - [x] I would be willing to contribute this improvement/feature with guidance from the Iceberg community
   - [ ] I cannot contribute this improvement/feature at this time


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


Re: [I] Using tables created in Hive Catalog in Hadoop catalog [iceberg]

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

   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


Re: [I] Using tables created in Hive Catalog in Hadoop catalog [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #12125: Using tables created in Hive Catalog in Hadoop catalog
URL: https://github.com/apache/iceberg/issues/12125


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


Re: [I] Using tables created in Hive Catalog in Hadoop catalog [iceberg]

Posted by "guykhazma (via GitHub)" <gi...@apache.org>.
guykhazma closed issue #12125: Using tables created in Hive Catalog in Hadoop catalog
URL: https://github.com/apache/iceberg/issues/12125


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


Re: [I] Using tables created in Hive Catalog in Hadoop catalog [iceberg]

Posted by "guykhazma (via GitHub)" <gi...@apache.org>.
guykhazma commented on issue #12125:
URL: https://github.com/apache/iceberg/issues/12125#issuecomment-2625293633

   @ajantha-bhat thanks for the pointers.
   As file system tables are deprecated I will close this issue.


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


Re: [I] Using tables created in Hive Catalog in Hadoop catalog [iceberg]

Posted by "ajantha-bhat (via GitHub)" <gi...@apache.org>.
ajantha-bhat commented on issue #12125:
URL: https://github.com/apache/iceberg/issues/12125#issuecomment-2623589630

   reason for different naming conventions is based on the spec (based on how they operate).
   
   https://iceberg.apache.org/spec/#file-system-tables
   https://iceberg.apache.org/spec/#metastore-tables


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


Re: [I] Using tables created in Hive Catalog in Hadoop catalog [iceberg]

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

   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