- Apache Presto 教程
- Apache Presto - 主頁
- Apache Presto - 概述
- Apache Presto - 架構
- Apache Presto - 安裝
- Apache Presto - 配置
- Apache Presto - 管理
- Apache Presto - SQL 操作
- Apache Presto - SQL 函式
- Apache Presto - MySQL 連線
- Apache Presto - JMX 連線
- Apache Presto - HIVE 連線
- Apache Presto - KAFKA 連線
- Apache Presto - JDBC 介面
- 自定義函式應用
- Apache Presto 實用資源
- Apache Presto - 快速指南
- Apache Presto - 實用資源
- Apache Presto - 討論
Apache Presto - JMX 連線
Java 管理擴充套件 (JMX) 提供有關在 JVM 內執行的 Java 虛擬機器和軟體的資訊。JMX 連線用於查詢 Presto 伺服器中的 JMX 資訊。
由於我們已經啟用了 “etc/catalog” 目錄下的 “jmx.properties” 檔案。現在連線 Prest CLI 以啟用 JMX 外掛。
Presto CLI
查詢
$ ./presto --server localhost:8080 --catalog jmx --schema jmx
結果
您將收到以下響應。
presto:jmx>
JMX 架構
若要列出 “jmx” 中的所有架構,請鍵入以下查詢。
查詢
presto:jmx> show schemas from jmx;
結果
Schema -------------------- information_schema current
顯示錶
若要檢視 “current” 架構中的表,請使用以下命令。
查詢 1
presto:jmx> show tables from jmx.current;
結果
Table ------------------------------------------------------------------------------ com.facebook.presto.execution.scheduler:name = nodescheduler com.facebook.presto.execution:name = queryexecution com.facebook.presto.execution:name = querymanager com.facebook.presto.execution:name = remotetaskfactory com.facebook.presto.execution:name = taskexecutor com.facebook.presto.execution:name = taskmanager com.facebook.presto.execution:type = queryqueue,name = global,expansion = global ……………… ……………….
查詢 2
presto:jmx> select * from jmx.current.”java.lang:type = compilation";
結果
node | compilationtimemonitoringsupported | name | objectname | totalcompilationti --------------------------------------+------------------------------------+--------------------------------+----------------------------+------------------- ffffffff-ffff-ffff-ffff-ffffffffffff | true | HotSpot 64-Bit Tiered Compilers | java.lang:type=Compilation | 1276
查詢 3
presto:jmx> select * from jmx.current."com.facebook.presto.server:name = taskresource";
結果
node | readfromoutputbuffertime.alltime.count | readfromoutputbuffertime.alltime.max | readfromoutputbuffertime.alltime.maxer --------------------------------------+---------------------------------------+--------------------------------------+--------------------------------------- ffffffff-ffff-ffff-ffff-ffffffffffff | 92.0 | 1.009106149 |
廣告