Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 889F3200AE1 for ; Mon, 6 Jun 2016 18:40:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 86E37160A59; Mon, 6 Jun 2016 16:40:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DB291160A1E for ; Mon, 6 Jun 2016 18:40:21 +0200 (CEST) Received: (qmail 16630 invoked by uid 500); 6 Jun 2016 16:40:21 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 16604 invoked by uid 99); 6 Jun 2016 16:40:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2016 16:40:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 04F722C033A for ; Mon, 6 Jun 2016 16:40:21 +0000 (UTC) Date: Mon, 6 Jun 2016 16:40:21 +0000 (UTC) From: "Dmytro Sen (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-16852) Update metrics collector pom.xml to use httpclient-4.2.5.jar MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 06 Jun 2016 16:40:22 -0000 [ https://issues.apache.org/jira/browse/AMBARI-16852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmytro Sen updated AMBARI-16852: -------------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) Committed to trunk and branch-2.4 > Update metrics collector pom.xml to use httpclient-4.2.5.jar > ------------------------------------------------------------ > > Key: AMBARI-16852 > URL: https://issues.apache.org/jira/browse/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: 2.4.0 > > Attachments: AMBARI-16852.patch > > > 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 when the Ambari-Metrics service is in distributed mode and the user configures 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.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler.getUserName(PseudoAuthenticationHandler.java:143) > at org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler.authenticate(PseudoAuthenticationHandler.java:179) > at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:507) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) > at org.apache.hadoop.http.HttpServer2$QuotingInputFilter.doFilter(HttpServer2.java:1224) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) > at org.apache.hadoop.http.NoCacheFilter.doFilter(NoCacheFilter.java:45) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) > at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > Steps to reproduce: > 1. install a cluster with default from Ambari Web UI > 2. configure Ambari Metrics service in distributed mode > 3. Add the following properties in Custom core-site from Ambari Web UI: > 1). hadoop.http.authentication.signature.secret.file=/etc/security/http_secret > 2). hadoop.http.filter.initializers=org.apache.hadoop.security.AuthenticationFilterInitialize > 4. create /etc/security/http_secret text file on each node > 5. restart HDFS, YARN, Mapreduce2, HBase, Kafka, and Ambari Metrics service > 6. Metrics on dashboard and HDFS, YARN, HBase, Kafka, and Amabari Metrics will show No Data Available. -- This message was sent by Atlassian JIRA (v6.3.4#6332)