HADOOP-12519. hadoop-azure tests should avoid creating a metrics configuration fiale in the module root directory. Contributed by Chris Nauroth.
This commit is contained in:
parent
e287e7d14b
commit
2d10cb8e00
@ -1293,6 +1293,9 @@ Release 2.8.0 - UNRELEASED
|
||||
HADOOP-12178. NPE during handling of SASL setup if problem with SASL
|
||||
resolver class. (Steve Loughran via zxu)
|
||||
|
||||
HADOOP-12519. hadoop-azure tests should avoid creating a metrics
|
||||
configuration file in the module root directory. (cnauroth)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
HADOOP-12051. ProtobufRpcEngine.invoke() should use Exception.toString()
|
||||
|
@ -38,6 +38,7 @@
|
||||
import org.apache.hadoop.metrics2.MetricsRecord;
|
||||
import org.apache.hadoop.metrics2.MetricsSink;
|
||||
import org.apache.hadoop.metrics2.MetricsTag;
|
||||
import org.apache.hadoop.metrics2.impl.TestMetricsConfig;
|
||||
import org.apache.hadoop.metrics2.lib.DefaultMetricsSystem;
|
||||
|
||||
import com.microsoft.azure.storage.AccessCondition;
|
||||
@ -252,7 +253,8 @@ private static void saveMetricsConfigFile() {
|
||||
new org.apache.hadoop.metrics2.impl.ConfigBuilder()
|
||||
.add("azure-file-system.sink.azuretestcollector.class",
|
||||
StandardCollector.class.getName())
|
||||
.save("hadoop-metrics2-azure-file-system.properties");
|
||||
.save(TestMetricsConfig.getTestFilename(
|
||||
"hadoop-metrics2-azure-file-system.properties"));
|
||||
metricsConfigSaved = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user