You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Alisha Prabhu (JIRA)" <ji...@apache.org> on 2018/08/02 05:34:00 UTC
[jira] [Commented] (AMBARI-24400) Tests in ambari-metrics fail with
java.lang.NoSuchFieldError: mapper
[ https://issues.apache.org/jira/browse/AMBARI-24400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16566373#comment-16566373 ]
Alisha Prabhu commented on AMBARI-24400:
----------------------------------------
Tests AggregatedMetricsPublisherTest and RawMetricsPublisherTest fail at the root folder as the scope of the "mapper" object declared in AbstractTimelineMetricsSink.java is protected. They pass inside ambari-metrics-host-aggregator module.
> Tests in ambari-metrics fail with java.lang.NoSuchFieldError: mapper
> --------------------------------------------------------------------
>
> Key: AMBARI-24400
> URL: https://issues.apache.org/jira/browse/AMBARI-24400
> Project: Ambari
> Issue Type: Bug
> Components: ambari-metrics
> Reporter: Alisha Prabhu
> Priority: Major
> Labels: ppc64le, x86_64
>
> Commands used at ./ambari/ambari-metrics/ :
> mvn -Dtest=AggregatedMetricsPublisherTest -DfailIfNoTests=false test
> mvn -Dtest=RawMetricsPublisherTest -DfailIfNoTests=false test
> Error :
> {code:java}
> Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.641 sec <<< FAILURE! - in org.apache.hadoop.metrics2.sink.timeline.AggregatedMetricsPublisherTest
> testProcessMetrics(org.apache.hadoop.metrics2.sink.timeline.AggregatedMetricsPublisherTest) Time elapsed: 0.043 sec <<< ERROR!
> java.lang.NoSuchFieldError: mapper
> at org.apache.hadoop.metrics2.sink.timeline.AggregatedMetricsPublisherTest.testProcessMetrics(AggregatedMetricsPublisherTest.java:65)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)