{"id":22152126,"url":"https://github.com/findinpath/trino-docker-compose-cluster-hive-minio","last_synced_at":"2026-03-19T21:58:06.178Z","repository":{"id":112791087,"uuid":"523407972","full_name":"findinpath/trino-docker-compose-cluster-hive-minio","owner":"findinpath","description":"Trino cluster for Hive backed by MinIO","archived":false,"fork":false,"pushed_at":"2022-08-11T05:01:45.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T18:32:03.080Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/findinpath.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-10T15:59:16.000Z","updated_at":"2022-11-30T14:55:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"be415a00-f9fb-49f4-af79-3ed99e16b331","html_url":"https://github.com/findinpath/trino-docker-compose-cluster-hive-minio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findinpath%2Ftrino-docker-compose-cluster-hive-minio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findinpath%2Ftrino-docker-compose-cluster-hive-minio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findinpath%2Ftrino-docker-compose-cluster-hive-minio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findinpath%2Ftrino-docker-compose-cluster-hive-minio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/findinpath","download_url":"https://codeload.github.com/findinpath/trino-docker-compose-cluster-hive-minio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245277458,"owners_count":20589154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T00:47:14.818Z","updated_at":"2026-01-06T11:06:06.415Z","avatar_url":"https://github.com/findinpath.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Trino cluster with `docker-compose` on top of MinIO\n===================================================\n\nThis project can be used to setup a [Trino](https://trino.io/) cluster with `docker-compose`.\n\nThe Trino cluster makes use of the [hive](https://trino.io/docs/current/connector/hive.html)\ncatalog for doing data processing on top of [MinIO](https://min.io/) object storage.\n\n## Cluster setup\n\nSetting up initially the cluster (composed of a coordinator and a worker) can be done through the command:\n\n```bash\ndocker-compose up\n```\n\nIn detached mode:\n\n```bash\ndocker-compose up -d\n```\n\n\nScale the number of workers into the Trino cluster:\n\n```bash\ndocker-compose up --scale trino-worker=3 -d\n```\n\n\nCheck the number of nodes in the Trino cluster:\n\n```bash\ndocker exec -it trino-docker-compose-cluster-hive-minio_trino-coordinator_1 /usr/bin/trino\n```\n\n```sql\ntrino\u003e select * from system.runtime.nodes;\nnode_id    |         http_uri         | node_version | coordinator | state  \n--------------+--------------------------+--------------+-------------+--------\n ff1ffc8ae0e0 | http://192.168.32.3:8080 | 358          | true        | active \n cdf437dd81da | http://192.168.32.2:8080 | 358          | false       | active \n e165fc03b39d | http://192.168.32.5:8080 | 358          | false       | active \n fa33d391ac43 | http://192.168.32.4:8080 | 358          | false       | active \n(4 rows)\n```\n\n\n## MinIO\n\n\nCreate a new bucket on MinIO by using the `mc` utility:\n\n```\nmc mb local/tiny\n```\n\n## Trino\n\nCreate the `tiny` schema within the `hive` catalog:\n\n```\nCREATE SCHEMA hive.tiny WITH (location='s3a://tiny/');\n```\n\nOnce the schema is created, there can be created tables on the `hive` schema,\nfiles can be uploaded to the location in which the MinIO and there can be done\ntesting locally for a wide array of hive usecases.\n\n\n## Tear down\n\n```bash\ndocker-compose down\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindinpath%2Ftrino-docker-compose-cluster-hive-minio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffindinpath%2Ftrino-docker-compose-cluster-hive-minio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindinpath%2Ftrino-docker-compose-cluster-hive-minio/lists"}