Trino 설치

data platform/trino / / 2022. 11. 11. 14:27
반응형

◎ 테스트 환경

OS : CentOS Stream release 8

DB : Oracle Database 19c Enterprise Edition Release 19.3.0.0.0

 

 

 

1. 아래에서 Trino RPM 설치 파일을 다운로드합니다.

https://trino.io/docs/current/installation/rpm.html

 

RPM package — Trino 398 Documentation

RPM package Users can install Trino using the RPM Package Manager (RPM) on some Linux distributions that support RPM. The RPM archive contains the application, all plugins, the necessary default configuration files, default setups, and integration with the

trino.io

 

2. 다운로드한 Trino RPM 설치 파일을 임의 경로(/trino)에 업로드합니다.

[root@centos8-oracle19 ~]# cd /trino

[root@centos8-oracle19 trino]# ls -rlt
total 705772
-rw-r--r--. 1 root root 722710419 Oct  6 00:43 trino-server-rpm-398.rpm

 

3. Trino RPM 설치 파일을 설치합니다.

[root@centos8-oracle19 trino]# rpm -i trino-server-rpm-*.rpm --nodeps

+======================================================================+
|      Error: Required Java version could not be found                 |
+----------------------------------------------------------------------+
| Please install JDK 17. On RHEL/CentOS, use java-17-openjdk-devel.    |
|                                                                      |
| You can also download an OpenJDK 17 build, such as Zulu Community:   |
|       >>> https://www.azul.com/downloads/zulu-community/ <<<         |
|                                                                      |
| NOTE: This script will attempt to find Java whether you install      |
|       using the binary or the RPM based installer.                   |
+======================================================================+
error: %prein(trino-server-rpm-0:398-1.noarch) scriptlet failed, exit status 1
error: trino-server-rpm-0:398-1.noarch: install failed

• 위와 같은 에러 발생 시, 위의 URL에서 OpenJDK 17을 다운로드하여 설치합니다.

 

4. 위의 OpenJDK RPM 설치 파일을 아래에서 다운로드합니다.

https://www.azul.com/downloads/?package=jdk 

 

Downloads

No matter the size of your company, Azul offers competitive pricing options to fit your needs, your budget, and your ambition.

www.azul.com

 

5. 다운로드한 OpenJDK RPM 설치 파일을 임의 경로(/trino)에 업로드합니다.

[root@centos8-oracle19 ~]# cd /trino

[root@centos8-oracle19 trino]# ls -rlt
total 878008
-rw-r--r--. 1 root root 722710419 Oct  6 00:43 trino-server-rpm-398.rpm
-rw-rw-r--. 1 root root 176367368 Oct  6 02:03 zulu17.36.17-ca-jdk17.0.4.1-linux.x86_64.rpm

 

6. OpenJDK 패키지 설치 파일을 설치합니다.

[root@centos8-oracle19 trino]# rpm -i zulu17.36.17-ca-jdk17.0.4.1-linux.x86_64.rpm

 

7. JAVA 버전을 확인하여 정상적으로 설치가 됐는지 확인합니다.

[root@centos8-oracle19 trino]# java --version

openjdk 17.0.4.1 2022-08-12 LTS
OpenJDK Runtime Environment Zulu17.36+17-CA (build 17.0.4.1+1-LTS)
OpenJDK 64-Bit Server VM Zulu17.36+17-CA (build 17.0.4.1+1-LTS, mixed mode, sharing)

 

8. Trino를 기동후, 상태를 확인합니다.

[root@centos8-oracle19 trino]# service trino start

Starting trino
Started as 579070

[root@centos8-oracle19 trino]# service trino status

Getting status for trino
Running as 579402

 

9. (/var/log/trino/launcher.log) 파일을 보면 기동 되는 로그가 출력됩니다.

[root@centos8-oracle19 trino]# tail -f launcher.log

WARNING: Current garbage collectors are [Copy, MarkSweepCompact]. Trino recommends the G1 garbage collector.
Oct 06, 2022 7:09:53 AM io.airlift.log.Logger info
INFO: Java version: 17.0.4.1
2022-10-06T07:09:54.315Z	INFO	main	io.airlift.log.Logging	Logging to stderr
2022-10-06T07:09:54.317Z	INFO	main	Bootstrap	Loading configuration
2022-10-06T07:09:55.439Z	INFO	main	Bootstrap	Initializing logging
2022-10-06T07:09:55.929Z	INFO	main	io.airlift.log.Logging	Logging to /var/log/trino/server.log
2022-10-06T07:09:56.238Z	INFO	main	io.airlift.log.Logging	Disabling stderr output

 

10. 웹브라우저에서 해당 머신의 IP:8080으로 접속하면 Trino 초기화면에 접속합니다.

 Username은 trino입니다.

 

11. 로그인하면 아래와 같은 화면을 볼 수 있습니다.

반응형

'data platform > trino' 카테고리의 다른 글

Trino Client에서 Oracle Database 접속  (0) 2022.11.11
Trino Client 설치  (0) 2022.11.11
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기