From 5c5139d35f70c80306f2b0c8802a0dd6fc30a0f6 Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Wed, 4 Feb 2015 04:17:14 -0800 Subject: [PATCH] HADOOP-11544. Remove unused configuration keys for tracing. Contributed by Masatake Iwasaki. (cherry picked from commit 42548f4dc2b2e8ace891b970c2c6712c02bb43ea) --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../apache/hadoop/fs/CommonConfigurationKeys.java | 3 --- .../src/main/resources/core-default.xml | 12 ------------ 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 8ffb33fdc23..021c75428ce 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -169,6 +169,9 @@ Release 2.7.0 - UNRELEASED HADOOP-11442. hadoop-azure: Create test jar. (Shashank Khandelwal via cnauroth) + HADOOP-11544. Remove unused configuration keys for tracing. (Masatake + Iwasaki via aajisaka) + OPTIMIZATIONS HADOOP-11323. WritableComparator#compare keeps reference to byte array. diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeys.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeys.java index 748c5528058..442dc7de9a3 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeys.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeys.java @@ -286,7 +286,4 @@ public class CommonConfigurationKeys extends CommonConfigurationKeysPublic { public static final String NFS_EXPORTS_ALLOWED_HOSTS_SEPARATOR = ";"; public static final String NFS_EXPORTS_ALLOWED_HOSTS_KEY = "nfs.exports.allowed.hosts"; public static final String NFS_EXPORTS_ALLOWED_HOSTS_KEY_DEFAULT = "* rw"; - - public static final String HADOOP_TRACE_SAMPLER = "hadoop.htrace.sampler"; - public static final String HADOOP_TRACE_SAMPLER_DEFAULT = "NeverSampler"; } diff --git a/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml b/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml index 4070619af65..19c21052fec 100644 --- a/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml +++ b/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml @@ -1646,18 +1646,6 @@ for ldap providers in the same way as above does. - - hadoop.htrace.sampler - NeverSampler - - Configure the samplers for HTrace, the value can be NeverSampler, - AlwaysSampler or ProbabilitySampler. NeverSampler: HTrace is OFF - for all spans; AlwaysSampler: HTrace is ON for all spans; - ProbabilitySampler: HTrace is ON for some percentage% of top-level - spans. - - - hadoop.htrace.spanreceiver.classes