opsnull / hadoop_jmx_exporter

HDFS & YARN jmx metrics prometheus exporter
77 stars 65 forks source link

suit for hostname witten in /etc/hosts in private cluster #9

Open kom0055 opened 2 years ago

kom0055 commented 2 years ago

add switch to compatible in private cluster

in our cluster, hostname was written in /etc/hosts, but requests session wont't recognize it.

Add command switch to control wheter use trust or verify in requests session.

If you wanna disable trust or verify in requests session, you could run like this

python2 hadoop_jmx_exporter.py -cluster demo -port 12000 -rms http://office001111:8088/jmx -verify False -trust False

image

It works fine!!!

Otherwise, you could run in older way to active the trust and verify option in requests session

python2 hadoop_jmx_exporter.py -cluster demo -port 12000 -rms http://office001111:8088/jmx image

Signed-off-by: kom0055 ev.sin@hotmail.com

kom0055 commented 2 years ago

8

enhance for this issue