배경)
각기 다른 port 를 사용하는 trino cluster 2대에 tls 적용 시

http-server.http.port 설정값을 지우고
http-server.https.port 설정값을 지정해줬다.
trino cluster 가 한 대라면 실행 시 문제가 없으나,
두 대 이상이라면 나중에 실행한 클러스터가 실행 불가.
server.log 의 Error Message )
Caused by: UncheckedIOException: Failed to bind to /0.0.0.0:8080
https 를 지정해주더라도, 기본 default http port 인 8080 을 통해 접속 후 동작하는 방식인 것 같다.
참고 )
https://trino.io/docs/current/security/tls.html?highlight=http+server+port
TLS and HTTPS — Trino 445 Documentation
TLS and HTTPS Trino runs with no security by default. This allows you to connect to the server using URLs that specify the HTTP protocol when using the Trino CLI, the Web UI, or other clients. This topic describes how to configure your Trino server to use
trino.io
해결 )
두대 중 한대는 http port 를 임의로 지정해줬다. ( 나머지 한대는 http 설정 미지정으로 유지 )

cluster 재실행 시 해결 완료!
'Data Engineering > Trino' 카테고리의 다른 글
[Trino] 하위 쿼리 order by 미지원 (0) | 2024.07.17 |
---|---|
[Trouble Shooting] trino cli > not working on linux ppc64le (0) | 2024.04.09 |