我正在hbase主节点上设置jmx prometheus exporter。指的是https://godatadriven.com/blog/monitoring-hbase-with-prometheus/>我在hbase-env.sh文件中添加了以下条目。
位置:/opt/hbase/hbase/conf/hbase-env.sh
export hbase\u opts=“$hbase\u opts javaagent:/opt/hbase/jmx exporter/jmx\u prometheus\u javaagent-0.15.0.jar=8095:/opt/hbase/jmx exporter/jmx config.yaml”
java主目录:
export java_home=“/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.ppc64le/”
jmx exporter和yaml文件位于这个文件夹-/opt/hbase/jmx exporter中
yaml文件仅包含一般规则:
规则:
图案:“*”
运行start-hbase.sh时,出现以下错误。有什么问题吗?
错误:无法找到或加载主类javaagent:.opt.hbase.jmx-exporter.jmx_prometheus_javaagent-0.15.0.jar=8095:.opt.hbase.jmx-exporter.jmx-config.yaml
hbase sh中没有jmx exporter条目,hbase主节点工作正常,web url mas上也可以使用度量转储terserver:port/jmx. 关于jre的指标,
{
"name" : "java.lang:type=Runtime",
"modelerType" : "sun.management.RuntimeImpl",
"StartTime" : 1612180735317,
"SpecName" : "Java Virtual Machine Specification",
"SpecVendor" : "Oracle Corporation",
"SpecVersion" : "1.8",
"ManagementSpecVersion" : "1.2",
"InputArguments" : [ "-Dproc_master", "-XX:OnOutOfMemoryError=kill -9 %p", "-Xmx8G", "-XX:MaxDirectMemorySize=8G", "-XX:+UseConcMarkSweepGC", "-XX:G1HeapRegionSize=32m", "-Dcom.sun.management.jmxremote", "-Dcom.sun.management.jmxremote.ssl=false", "-Dcom.sun.management.jmxremote.password.file=/opt/hbase/hbase/conf/jmxremote.passwd", "-Dcom.sun.management.jmxremote.access.file=/opt/hbase/hbase/conf/jmxremote.access", "-Dcom.sun.management.jmxremote.port=8093", "-Dhbase.log.dir=/opt/hbase/hbase/logs", "-Dhbase.log.file=hbase-hadoop-master-HBASEM1-DEV-S1.dev.com.log", "-Dhbase.home.dir=/opt/hbase/hbase", "-Dhbase.id.str=hadoop", "-Dhbase.root.logger=INFO,RFA", "-Djava.library.path=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.ppc64le//lib:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el7_8.ppc64le//jre/lib:/opt/hadoop/hadoop/lib/native", "-Dhbase.security.logger=INFO,RFAS" ],
暂无答案!
目前还没有任何答案,快来回答吧!