[EAGLE-356] Fix Authentication problem to query resource manager web service
Author: Hao Chen <haoch@users.noreply.github.com>
Closes #252 from haoch/patch-1.
diff --git a/eagle-external/hadoop_jmx_collector/metric_collector.py b/eagle-external/hadoop_jmx_collector/metric_collector.py
index 939b811..39920b3 100644
--- a/eagle-external/hadoop_jmx_collector/metric_collector.py
+++ b/eagle-external/hadoop_jmx_collector/metric_collector.py
@@ -162,7 +162,7 @@
self.https = https
def read_cluster_info(self):
- cluster_info = Helper.http_get(self.host, self.port, self.https, "/ws/v1/cluster/info")
+ cluster_info = Helper.http_get(self.host, self.port, self.https, "/ws/v1/cluster/info?anonymous=true")
logging.debug(cluster_info)
return json.loads(cluster_info)
@@ -351,4 +351,4 @@
pass
def on_metric(self, metric):
- pass
\ No newline at end of file
+ pass