heman026 opened a new issue, #1560:
URL: https://github.com/apache/iceberg-python/issues/1560
### Question
I am getting "Failed to read table metadata from
s3a://iceberg-datalake/test/emp_69182e21-1700-4317-9f75-55fca8d57979/metadata/00002-d7b6a027-3d3d-4a1f-9350-ce019969cc2e.metadata.json"
when loading table using PyIceberg Rest Catalog. I am using Nessie catalog and
minio for storage.
```
catalog = load_catalog("rest",
**{
"uri": "http://10.55.134.161:19120/iceberg",
"s3.endpoint": "http://10.55.134.161:9000",
"warehouse": "warehouse",
"s3.access-key-id": "minioadmin",
"s3.secret-access-key": "minioadmin"
}, )
con = catalog.load_table('test.emp')
```
### Nessie Configuration Used:
>
> java \
> -Dquarkus.management.port=9090 \
> -Dnessie.version.store.type=JDBC \
> -Dquarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/nessie_db \
> -Dquarkus.datasource.username=nessie \
> -Dquarkus.datasource.password=nessie \
> -Dnessie.catalog.default-warehouse=warehouse \
> -Dnessie.catalog.warehouses.warehouse.location=s3a://iceberg-datalake\
>
-Dnessie.catalog.service.s3.default-options.endpoint=http://10.55.134.161:9000\
> -Dnessie.catalog.service.s3.default-options.path-style-access=true\
> -Dnessie.catalog.service.s3.default-options.access-key=minioadmin \
> -Dnessie.catalog.service.s3.default-options.secret-key=minioadmin \
> -Dnessie.server.authentication.enabled=false \
> -Dnessie.catalog.service.s3.default-options.region=us-east-1 \
> -jar nessie-quarkus-0.100.2-runner.jar
### Error
>
> Exception has occurred: BadRequestError
>
> IllegalArgumentException: java.util.concurrent.CompletionException:
java.lang.RuntimeException: Failed to read table metadata from
s3a://iceberg-datalake/test/emp_69182e21-1700-4317-9f75-55fca8d57979/metadata/00002-d7b6a027-3d3d-4a1f-9350-ce019969cc2e.metadata.json
>
> File "C:\pyiceberg\catalog\rest.py", line 697, in load_table
response.raise_for_status() requests.exceptions.HTTPError: 400 Client Error:
Bad Request for url:
http://10.55.134.161:19120/iceberg/v1/main%7Cwarehouse/namespaces/test/tables/emp
The above exception was the direct cause of the following exception: File
"C:\pyiceberg\catalog\rest.py", line 476, in _handle_non_200_response raise
exception(response) from exc File "C:\Hemanath\KAI\Iceberg
Evaluation\Docker\duck\pyiceberg1\catalog\rest.py", line 699, in load_table
self._handle_non_200_response(exc, {404: NoSuchTableError}) File "C:\duck.py",
line 55, in <module> con = catalog.load_table('test.emp')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pyiceberg1.exceptions.BadRequestError:
IllegalArgumentException: java.util.concurrent.CompletionException:
java.lang.RuntimeException: Failed to read table metadata from
s3a://iceberg-datalake/test/emp_69182e21-1700-4317-9f75-55fca8d57979/metadata/00002-d7b6a027-3d3d-4a1f-9350-ce019969cc2e.metadata
.json`
Note: I also disabled s3 request signing in Nessie
(-Dnessie.catalog.service.s3.default-options.request-signing-enabled=false),
but still getting the same error.
Please help me resolve this. Thanks
--
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]