arookieds commented on issue #515:
URL: https://github.com/apache/iceberg-python/issues/515#issuecomment-2049745023
I have tried both solution, ie:
- setting the env variable to the proper AWS region
- providing it within the function call
But I am always getting the same error:
```python
Traceback (most recent call last):
File "/path/to/the/project/testing.py", line 15, in <module>
table = catalog.load_table((catalog_name, table_name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/path/to/the/project/venv/lib/python3.11/site-packages/pyiceberg/catalog/glue.py",
line 473, in load_table
return
self._convert_glue_to_iceberg(self._get_glue_table(database_name=database_name,
table_name=table_name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/path/to/the/project/venv/lib/python3.11/site-packages/pyiceberg/catalog/glue.py",
line 296, in _convert_glue_to_iceberg
metadata = FromInputFile.table_metadata(file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/path/to/the/project/venv/lib/python3.11/site-packages/pyiceberg/serializers.py",
line 112, in table_metadata
with input_file.open() as input_stream:
^^^^^^^^^^^^^^^^^
File
"/path/to/the/project/venv/lib/python3.11/site-packages/pyiceberg/io/pyarrow.py",
line 263, in open
input_file = self._filesystem.open_input_file(self._path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pyarrow/_fs.pyx", line 780, in pyarrow._fs.FileSystem.open_input_file
File "pyarrow/error.pxi", line 154, in
pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
OSError: When reading information for key
'path/to/s3/table/location/metadata/100000-458c8ffc-de06-4eb5-bc4a-b94c3034a548.metadata.json'
in bucket 's3_bucket_name': AWS Error UNKNOWN (HTTP status 400) during
HeadObject operation: No response body.
```
--
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]