[EAGLE-356] Fix Authentication problem to query resource manager web service
Author: Hao Chen <ha...@users.noreply.github.com> Closes #252 from haoch/patch-1. (cherry picked from commit d750501242df6be408ace4baa50286ae948bfea4) Signed-off-by: Hao Chen <h...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/f76a9724 Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/f76a9724 Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/f76a9724 Branch: refs/heads/master Commit: f76a972481075417d0511d126124021ae316821d Parents: 23d3ca6 Author: Hao Chen <h...@apache.org> Authored: Thu Jul 7 15:18:40 2016 +0800 Committer: Hao Chen <h...@apache.org> Committed: Thu Jul 7 15:19:19 2016 +0800 ---------------------------------------------------------------------- eagle-external/hadoop_jmx_collector/metric_collector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/f76a9724/eagle-external/hadoop_jmx_collector/metric_collector.py ---------------------------------------------------------------------- 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 @@ class YarnWSReader: 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 @@ class JmxMetricListener: pass def on_metric(self, metric): - pass \ No newline at end of file + pass