From 7eea8d83fa64268469e24d6b3acde73598d56c7f Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Wed, 5 Apr 2017 15:12:03 -0700 Subject: [PATCH] HADOOP-14280. Fix compilation of TestKafkaMetrics. --- hadoop-tools/hadoop-kafka/pom.xml | 26 ------------------- .../metrics2/impl/TestKafkaMetrics.java | 4 +-- 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/hadoop-tools/hadoop-kafka/pom.xml b/hadoop-tools/hadoop-kafka/pom.xml index 06c38f7bcf..13e0ac0a53 100644 --- a/hadoop-tools/hadoop-kafka/pom.xml +++ b/hadoop-tools/hadoop-kafka/pom.xml @@ -36,32 +36,6 @@ true - - - tests-off - - - src/test/resources/auth-keys.xml - - - - true - - - - tests-on - - - src/test/resources/auth-keys.xml - - - - false - - - - - diff --git a/hadoop-tools/hadoop-kafka/src/test/java/org/apache/hadoop/metrics2/impl/TestKafkaMetrics.java b/hadoop-tools/hadoop-kafka/src/test/java/org/apache/hadoop/metrics2/impl/TestKafkaMetrics.java index eff1afa328..8479298d56 100644 --- a/hadoop-tools/hadoop-kafka/src/test/java/org/apache/hadoop/metrics2/impl/TestKafkaMetrics.java +++ b/hadoop-tools/hadoop-kafka/src/test/java/org/apache/hadoop/metrics2/impl/TestKafkaMetrics.java @@ -18,7 +18,7 @@ package org.apache.hadoop.metrics2.impl; -import com.google.common.base.Objects; +import com.google.common.base.MoreObjects; import com.google.common.collect.Lists; import org.apache.commons.configuration2.SubsetConfiguration; import org.apache.hadoop.metrics2.AbstractMetric; @@ -74,7 +74,7 @@ public String description() { @Override public String toString() { - return Objects.toStringHelper(this).add("name", name()) + return MoreObjects.toStringHelper(this).add("name", name()) .add("description", desc).toString(); } }