[
https://issues.apache.org/jira/browse/AMBARI-24400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16594869#comment-16594869
]
Alisha Prabhu commented on AMBARI-24400:
----------------------------------------
Hi [~avijayan],
The command used before running tests is : mvn clean install -DskipTests
Observed that the test fail with the above error by using below cmd in
ambari-metrics :
mvn -Dtest=AggregatedMetricsPublisherTest -DfailIfNoTests=false test
whereas, they pass by using 'clean' explicitly : mvn clean
-Dtest=AggregatedMetricsPublisherTest -DfailIfNoTests=false test
I am unable to understand this behaviour of the test case. Please guide me with
the right approach.
> 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
> Attachments: AMBARI-24400.patch
>
>
> 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)