-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trino access Aliyun OSS got error: 'failed: No factory for location: oss://bucket-name/path' #23740
Comments
I have the same issue on Trino 462 version but with S3 Caused by: java.lang.IllegalArgumentException: No factory for location: s3a://Bucket NAME/metadata/13665-29244414-57ea-433d-a4c2-76d6fe0c48a2.metadata.json
Error Type : INTERNAL_ERROR
|
Got this working At a minimum, each Delta Lake, Hive or Hudi object storage catalog file must set the hive.metastore configuration property to define the type of metastore to use. Iceberg catalogs instead use the iceberg.catalog.type configuration property to define the type of metastore to use. Go through this carefully : https://trino.io/docs/current/object-storage/metastores.html#hive-thrift-metastore For hive
For me The below configuration worked
|
If you are using thrift protocol do as above But if you are using http or https read the respective Sections in the above link provided. |
I see a similar error with the Iceberg connector with the rest and glue catalog. I used the following config for glue
and following for rest
the error is
I tried various versions and see the problem started at version 458 |
using local minio + iceberg rest catalog connector.name=iceberg
iceberg.catalog.type=rest
iceberg.rest-catalog.uri=http://rest:8181
iceberg.rest-catalog.warehouse=s3://demo-iceberg/
iceberg.file-format=PARQUET
fs.native-s3.enabled=true
s3.endpoint=http://minio:9000
s3.path-style-access=true Works for me ~ using |
Only relevant to comments from @hendoxc and @sar009 Please read docs and release notes. Since 458 this was changed. See the breaking changes notes in https://trino.io/docs/current/release/release-458.html#iceberg-connector And also see docs https://trino.io/docs/current/object-storage.html#configuration For the original reporter it seems your metastore has the locations stored as |
Hello there, trying to using Trino to access data warehouse setup based on Aliyun OSS
Trino was deployed on kuburnetes and the hive.properties part in catalog.yaml was edited like below
while executing show tables is working great and when i tried to get data from specific table, something went wrong
Query 20241010_103922_00003_dt8h9 failed: No factory for location:
the way Trino interact with OSS should be the same as AWS S3, anyone please help, thanks a lot
The text was updated successfully, but these errors were encountered: