ozone-trino docker-compose connection refused #4973
Replies: 4 comments 3 replies
-
|
if you refer to http://s3g:9878 then I get an error Error committing write to Hive |
Beta Was this translation helpful? Give feedback.
-
|
we understand what is needed endpoint=virtual-host-style URL |
Beta Was this translation helpful? Give feedback.
-
|
@tolstykh-da I've created an example docker-compose-based setup for integrating Ozone with Iceberg and Trino. Based on this experience, I recommend configuring Iceberg and Trino to access Ozone S3 Gateway using path-style URLs. Here are the relevant configs: ozone/hadoop-ozone/dist/src/main/compose/ozone/iceberg.yaml Lines 46 to 47 in 41be4fb See #5016 for the complete example. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @adoroszlai Thank you |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
hi, I'm trying to use ozone along with trino through this config.
datanode: image: apache/ozone:1.3.0 networks: iceberg_net: ports: - 9864 command: ["ozone","datanode"] env_file: - ./docker-config om: image: apache/ozone:1.3.0 networks: iceberg_net: ports: - 9874:9874 environment: ENSURE_OM_INITIALIZED: /data/metadata/om/current/VERSION WAITFOR: scm:9876 env_file: - ./docker-config command: ["ozone","om"] scm: image: apache/ozone:1.3.0 networks: iceberg_net: ports: - 9876:9876 env_file: - ./docker-config environment: ENSURE_SCM_INITIALIZED: /data/metadata/scm/current/VERSION command: ["ozone","scm"] recon: image: apache/ozone:1.3.0 networks: iceberg_net: ports: - 9888:9888 env_file: - ./docker-config command: ["ozone","recon"] s3g: image: apache/ozone:1.3.0 ports: - 9878:9878 env_file: - ./docker-config environment: - AWS_ACCESS_KEY_ID=minio - AWS_SECRET_ACCESS_KEY=minio123 - AWS_REGION=us-east-1 networks: iceberg_net: #aliases: # - dwh.s3g command: ["ozone","s3g"]In trino, I turn to this (works with minio)
also for minio i specify
aliases: - dwh.miniowhen ozone is running i can create via aws s3api cli bucket=dwh
aws s3api --endpoint http://localhost:9878 create-bucket --bucket=dwh { "Location": "http://localhost:9878/dwh" } #I can enter the bucket through cyberduckwhen I try to create table from trino, I get
Unable to execute HTTP request: Connect to localhost:9878 [localhost/127.0.0.1] failed: Connection refused
tell me how to properly configure ozone and how to access it through s3?
may need http://localhost:9878/s3g? or http://s3g.localhost:9878?
Beta Was this translation helpful? Give feedback.
All reactions