ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Qin Liu (JIRA)" <>
Subject [jira] [Created] (AMBARI-16852) Update metrics collector pom.xml to use httpclient-4.2.5.jar
Date Tue, 24 May 2016 17:35:12 GMT
Qin Liu created AMBARI-16852:

             Summary: Update metrics collector pom.xml to use httpclient-4.2.5.jar
                 Key: AMBARI-16852
             Project: Ambari
          Issue Type: Bug
          Components: ambari-metrics
    Affects Versions: 2.1.0, 2.2.0
            Reporter: Qin Liu
            Assignee: Qin Liu
             Fix For: trunk

httpclient-4.0.1.jar used by AMS collector does not have method URLEncodedUtils.parse (final
URI uri, final String encoding). This will cause the metrics not to be populated and the collector
log to be flooded with the following exception when the user sets http authentication filter
without enabling Kerberos:
21:54:08,215 ERROR [1831490216@qtp-1883237069-7582] log:87 - Error for /ws/v1/timeline/metrics
java.lang.NoSuchMethodError: org.apache.http.client.utils.URLEncodedUtils.parse(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/util/List;
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
        at org.apache.hadoop.http.HttpServer2$QuotingInputFilter.doFilter(
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
        at org.apache.hadoop.http.NoCacheFilter.doFilter(
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
        at org.mortbay.jetty.servlet.ServletHandler.handle(

Steps to reproduce:
Add the following properties in Custom core-site from Ambari Web UI:
1. hadoop.http.authentication.signature.secret=test
2. hadoop.http.authentication.signature.secret.file=/etc/security/http_secret

This message was sent by Atlassian JIRA

View raw message