- Apache Presto Tutorial
- Apache Presto - Home
- Apache Presto - Overview
- Apache Presto - Architecture
- Apache Presto - Installation
- Apache Presto - Configuration
- Apache Presto - Administration
- Apache Presto - SQL Operations
- Apache Presto - SQL Functions
- Apache Presto - MySQL Connector
- Apache Presto - JMX Connector
- Apache Presto - HIVE Connector
- Apache Presto - KAFKA Connector
- Apache Presto - JDBC Interface
- Custom Function Application
- Apache Presto Useful Resources
- Apache Presto - Quick Guide
- Apache Presto - Useful Resources
- Apache Presto - Discussion
Apache Presto - JMX 连接器
Java 管理扩展 (JMX) 提供有关 Java 虚拟机和 JVM 内运行的软件的信息。JMX连接器用于查询Presto服务器中的JMX信息。
因为我们已经在“etc/catalog”目录下启用了“jmx.properties”文件。现在连接 Perst CLI 以启用 JMX 插件。
快速 CLI
询问
$ ./presto --server localhost:8080 --catalog jmx --schema jmx
结果
您将收到以下回复。
presto:jmx>
JMX 架构
要列出“jmx”中的所有架构,请键入以下查询。
询问
presto:jmx> show schemas from jmx;
结果
Schema -------------------- information_schema 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 |