{"id":22152125,"url":"https://github.com/findinpath/trino-elasticsearch7-auth","last_synced_at":"2026-02-27T13:45:07.260Z","repository":{"id":112791075,"uuid":"424388627","full_name":"findinpath/trino-elasticsearch7-auth","owner":"findinpath","description":"Proof of concept Trino with Elasticsearch7 with authentication","archived":false,"fork":false,"pushed_at":"2021-11-03T21:41:37.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T16:00:54.391Z","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":"2021-11-03T21:41:19.000Z","updated_at":"2021-11-03T21:41:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"ccaf7556-92cb-4b89-bcd5-667018a6dd73","html_url":"https://github.com/findinpath/trino-elasticsearch7-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/findinpath/trino-elasticsearch7-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findinpath%2Ftrino-elasticsearch7-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findinpath%2Ftrino-elasticsearch7-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findinpath%2Ftrino-elasticsearch7-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findinpath%2Ftrino-elasticsearch7-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/findinpath","download_url":"https://codeload.github.com/findinpath/trino-elasticsearch7-auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findinpath%2Ftrino-elasticsearch7-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29898184,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T12:09:13.686Z","status":"ssl_error","status_checked_at":"2026-02-27T12:09:13.282Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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.101Z","updated_at":"2026-02-27T13:45:07.228Z","avatar_url":"https://github.com/findinpath.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Trino with Elasticsearch 7\n==========================\n\n\nThis showcase project is inspired from [trino-gettingstarted/trino-elasticsearch7](https://github.com/bitsondatadev/trino-getting-started/tree/main/elasticsearch/trino-elasticsearch7) guideline.\n\nOn top of the initial project, this project adds authentication to Elasticsearch 7\nand verifies whether the trino elasticsearch connector works as expected with authentication.\n\n\n\n## Demo\n\n\nUse\n\n```\ndocker-compose up -d\n```\n\nin order to spin up the docker testing environment.\n\nOnce both Trino and Elasticsearch 7 are up and running,\nconnect via trino to Elasticsearch.\n\n\n```\ndocker container exec -it trino-elasticsearch7-auth_trino-coordinator_1 trino\n```\n\n\n```\ntrino\u003e show catalogs;\n    Catalog    \n---------------\n elasticsearch \n system        \n tpcds         \n tpch          \n(4 rows)\n```\n\n\n```\ntrino\u003e show schemas in elasticsearch;\n       Schema       \n--------------------\n default            \n information_schema \n system             \n(3 rows)\n```\n\n\n```\ntrino\u003e show tables in elasticsearch.default;\n Table \n-------\n(0 rows)\n```\n\nIn case that the password configured  `etc/catalog/elasticsearch.properties` file would be incorrect (`changeme1` instead of `changeme`), the previous statement would fail with a `401` error:\n\n```\ntrino\u003e show tables in elasticsearch.default;\n\nQuery 20211103_213008_00006_szuip, FAILED, 1 node\nSplits: 19 total, 0 done (0.00%)\n0.13 [0 rows, 0B] [0 rows/s, 0B/s]\n\nQuery 20211103_213008_00006_szuip failed: method [GET], host [http://es01:9200], URI [/_cat/indices?h=index,docs.count,docs.deleted\u0026format=json\u0026s=index:asc], status line [HTTP/1.1 401 Unauthorized]\n{\"error\":{\"root_cause\":[{\"type\":\"security_exception\",\"reason\":\"unable to authenticate user [elastic] for REST request [/_cat/indices?h=index,docs.count,docs.deleted\u0026format=json\u0026s=index:asc]\",\"header\":{\"WWW-Authenticate\":\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"}}],\"type\":\"security_exception\",\"reason\":\"unable to authenticate user [elastic] for REST request [/_cat/indices?h=index,docs.count,docs.deleted\u0026format=json\u0026s=index:asc]\",\"header\":{\"WWW-Authenticate\":\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"}},\"status\":401}\n```\n\n\n\nOnce the demo session is over, tear down the docker environment:\n\n```\ndocker-compose down\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindinpath%2Ftrino-elasticsearch7-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffindinpath%2Ftrino-elasticsearch7-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindinpath%2Ftrino-elasticsearch7-auth/lists"}