--- title: "Trino を使用する" slug: "df-trino" tags: ["Data Forest", "vpc"] updated: 2026-09-17T09:25:49Z published: 2026-09-17T09:25:49Z canonical: "guide.ncloud-docs.com/df-trino" --- > ## Documentation Index > Fetch the complete documentation index at: https://guide.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # Trino を使用する VPC環境で利用できます。 Trinoはビッグデータ分析のための分散型 SQLクエリエンジンです。PrestoSQLが Trinoに [Rebranding](https://trino.io/blog/2020/12/27/announcing-trino.html)され、PrestoSQLをベースに提供されていた Prestoアプリも Trinoアプリに名前が変更されました。Data Forestで提供している Prestoアプリと同様に、Trinoアプリでもユーザーごとに独立した Trinoサーバ環境を構成できます。 参考 - Trinoの詳細な説明は、[TRINO](https://trino.io/)をご参照ください。 - Data Forestでは、Trinoエンジンを **Trino 437**バージョンで提供します。ES connectorに含まれていた log4jが Trino 366バージョン以降から削除されているので、log4jの脆弱性( CVE-2021-44228)から安全に使用できます。詳細な説明は、[公式ドキュメント](https://trino.io/docs/current/release/release-367.html)をご確認ください。 - Trinoアプリでは、Trinoサーバと Trino Cliおよび Supervisor機能を一緒に提供します。 - Trinoアプリでカスタム configurationを設定する機能は現在準備中です。 ## Trinoアプリの詳細情報の確認 アプリの作成が完了すると、詳細情報を確認できます。アプリの詳細情報の **Status**が **Stable**の場合、アプリが正常に起動されたことを意味します。 アプリの詳細情報を確認する方法は、次の通りです。 1. NAVERクラウドプラットフォームコンソールの VPC環境で、**Menu** > **All Services** > **Big Data & Analytics** > **Data Forest**メニューを順にクリックします。 2. 左側の **Data Forest** > **Apps**メニューをクリックします。 3. アプリを所有するアカウントを選択します。 4. 詳細情報を確認するアプリをクリックします。 5. アプリの詳細情報を確認します。 ![df-trino_2-1_updated_ko](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/df-trino_2-1_updated_ja.png?sv=2026-02-06&spr=https&st=2026-10-26T12%3A38%3A37Z&se=2026-10-26T13%3A38%3A37Z&sr=c&sp=r&sig=F1yrhj2NRzBThluxPt1slRiNn7Z2uQ8t7qYKPVMUBBc%3D) - **Quick links** - **Trino Coordinator**: Trino Coordinator Web UIにアクセス可能。ユーザーアカウント名とパスワードでログイン - **Trino Cli Web**: ブラウザを通じて [Webベースの Cli](https://trino.io/docs/current/client/cli.html)を使用可能。ユーザーアカウント名とパスワードでログイン - **Supervisor**: コンテナのアプリプロセスをモニタリングして管理できる [supervisor](http://supervisord.org)を提供。Supervisor Web UIを通じてプロセス管理が可能 - **コンポーネント**: デフォルトで指定された値が推奨リソースです。 - **coordinator**: coordinatorロールを実行するコンポーネント - **worker**: workerロールを実行するコンポーネント 例) - **Trino Coordinator**接続画面 ![df-trino_02_vpc_ko](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/df-trino_02_vpc.png?sv=2026-02-06&spr=https&st=2026-10-26T12%3A38%3A37Z&se=2026-10-26T13%3A38%3A37Z&sr=c&sp=r&sig=F1yrhj2NRzBThluxPt1slRiNn7Z2uQ8t7qYKPVMUBBc%3D) - **Trino Cli Web**接続画面 ![df-trino_03_vpc_ko](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/df-trino_03_vpc.png?sv=2026-02-06&spr=https&st=2026-10-26T12%3A38%3A37Z&se=2026-10-26T13%3A38%3A37Z&sr=c&sp=r&sig=F1yrhj2NRzBThluxPt1slRiNn7Z2uQ8t7qYKPVMUBBc%3D) - **Supervisor**接続画面 ![df-trino_04_vpc_ko](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/df-trino_04_vpc_ja.png?sv=2026-02-06&spr=https&st=2026-10-26T12%3A38%3A37Z&se=2026-10-26T13%3A38%3A37Z&sr=c&sp=r&sig=F1yrhj2NRzBThluxPt1slRiNn7Z2uQ8t7qYKPVMUBBc%3D) ## Catalog、Schema確認 このアプリで作成した Trinoサーバには Hive Connectorがデフォルトで設定されているため、Hive Warehouseにアクセスすることができます。 以下のように hive、system catalogが存在することが確認できます。`system catalog`はクラスタに関する情報と指標を提供します。 ``` Password: trino> show catalogs; Catalog --------- hive system (2 rows) Query 20220208_050852_00000_4xb62, FINISHED, 3 nodes Splits: 53 total, 53 done (100.00%) 1.23 [0 rows, 0B] [0 rows/s, 0B/s] ``` `system catalog`の下位に存在するテーブルと Prestoクラスタを構成するノード情報を確認できます。 ``` trino> SHOW SCHEMAS FROM system; Schema -------------------- information_schema jdbc metadata runtime (4 rows) Query 20220208_051532_00001_4xb62, FINISHED, 4 nodes Splits: 53 total, 53 done (100.00%) 0.28 [4 rows, 57B] [14 rows/s, 201B/s] trino> SHOW TABLES FROM system.runtime; Table ---------------------- nodes optimizer_rule_stats queries tasks transactions (5 rows) Query 20220208_051549_00002_4xb62, FINISHED, 4 nodes Splits: 53 total, 53 done (100.00%) 0.32 [5 rows, 134B] [15 rows/s, 425B/s] trino> SELECT * FROM system.runtime.nodes; node_id | http_uri | node_version | coordinator | state -------------------------------------------------------------------+----------------------------+--------------+-------------+-------- test-01-worker-0-container_e814_1643186470613_0056_01_000003 | http://10.250.31.228:10292 | 367 | false | active test-01-coordinator-0-container_e814_1643186470613_0056_01_000002 | http://10.250.31.224:10302 | 367 | true | active test-01-worker-1-container_e814_1643186470613_0056_01_000004 | http://10.250.31.225:10292 | 367 | false | active test-01-worker-2-container_e814_1643186470613_0056_01_000005 | http://10.250.31.227:10292 | 367 | false | active (4 rows) Query 20220208_051555_00003_4xb62, FINISHED, 2 nodes Splits: 17 total, 17 done (100.00%) 0.23 [4 rows, 389B] [17 rows/s, 1.65KB/s] trino> ``` `hive catalog`を確認できます。Trinoで Hive Metastoreの下位に保存されたデータを照会できます。 ``` trino> SHOW SCHEMAS FROM hive; Schema -------------------------- default df_test__db_foo information_schema (3 rows) Query 20220208_054001_00004_4xb62, FINISHED, 4 nodes Splits: 53 total, 53 done (100.00%) 0.92 [7 rows, 141B] [7 rows/s, 153B/s] ``` ## worker数の変更 アプリ使用中に worker数を変更できます。 worker数を変更する方法は、次の通りです。 1. NAVERクラウドプラットフォームコンソールの VPC環境で、**Menu** > **All Services** > **Big Data & Analytics** > **Data Forest**メニューを順にクリックします。 2. 左側の **Data Forest** > **Apps**メニューをクリックします。 3. アカウントを選択してアプリを選択し、 **[Flex]** ボタンをクリックします。 4. Flexの変更画面が表示されたら、worker数を変更して **[変更]** ボタンをクリックします。 ![df-trino_05_vpc_updated_ko](https://cdn.document360.io/6998976f-9d95-4df8-b847-d375892b92c2/Images/Documentation/df-trino_05_vpc_updated_ja.png?sv=2026-02-06&spr=https&st=2026-10-26T12%3A38%3A37Z&se=2026-10-26T13%3A38%3A37Z&sr=c&sp=r&sig=F1yrhj2NRzBThluxPt1slRiNn7Z2uQ8t7qYKPVMUBBc%3D) 参考 Flex機能を使用して worker数を減らすと、{{COMPONENT_ID}}が大きいものから停止します。workerが5つの場合、worker-4、worker-3、worker-2…の順に除外されます。