sandcobainer commented on issue #1328:
URL: 
https://github.com/apache/iceberg-python/issues/1328#issuecomment-2520829390

   so i ran boto3 vs pyiceberg's `load_file_io` with the same credentials
   ```
   catalog = HiveCatalog(
       "bucket",
       **{
           "uri":"hive2://localhost:9083",
           "s3.endpoint":"http://s3-website-us-east-1.amazonaws.com";,
           "s3.access-key-id":"key id",
           "s3.secret-access-key":"access key",
           "s3.session-token": "session-key"
       },
   )
   metadata_location = 
"s3://bucket/warehouse/tenantdb.db/pinglogs/metadata/00001-32cbc4e6-ad0d-43c5-8e01-2a29c6f83941.metadata.json"
   io = catalog._load_file_io(location=metadata_location) 
   file = io.new_input(metadata_location) 
   print(file.open().read())
   ```
   Output: `b''`
   
   ```
   session = boto3.Session(profile_name="IO-Analytics")
   credentials = session.get_credentials()
   s3_client = session.client('s3')
   s3_client.download_file('bucket', 
'warehouse/tenantdb.db/pinglogs/metadata/00001-32cbc4e6-ad0d-43c5-8e01-2a29c6f83941.metadata.json',
 './metadata.json')
   print(open('metadata.json').read())
   ```
   returns ```{
     "format-version" : 1,
     "table-uuid" : "a399a8d6-2a26-4068-a73d-af7e39725b35",
     "location" : "s3a://bucket/warehouse/tenantdb.db/pinglogs",
     "last-updated-ms" : 1729686218008,
     "last-column-id" : 22, 
   ...
   ```
   
   can someone try to reproduce this with an s3 file please?
   


-- 
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-unsubscr...@iceberg.apache.org

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


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

Reply via email to