Return-Path: X-Original-To: apmail-hadoop-common-commits-archive@www.apache.org Delivered-To: apmail-hadoop-common-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2D79517CAD for ; Mon, 26 Jan 2015 17:44:17 +0000 (UTC) Received: (qmail 24607 invoked by uid 500); 26 Jan 2015 17:44:17 -0000 Delivered-To: apmail-hadoop-common-commits-archive@hadoop.apache.org Received: (qmail 24317 invoked by uid 500); 26 Jan 2015 17:44:17 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 24166 invoked by uid 99); 26 Jan 2015 17:44:17 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jan 2015 17:44:17 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 78BA8E0850; Mon, 26 Jan 2015 17:44:16 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: zhz@apache.org To: common-commits@hadoop.apache.org Date: Mon, 26 Jan 2015 17:44:21 -0000 Message-Id: <068bf487f9774c31a7ed198f0ff55ad6@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [06/50] [abbrv] hadoop git commit: HDFS-7623. Add htrace configuration properties to core-default.xml and update user doc about how to enable htrace. (yliu) HDFS-7623. Add htrace configuration properties to core-default.xml and update user doc about how to enable htrace. (yliu) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/3111cfb1 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/3111cfb1 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/3111cfb1 Branch: refs/heads/HDFS-EC Commit: 3111cfb18fe2e25c4dd96620f16ed53b322dd635 Parents: 7ba6504 Author: yliu Authored: Wed Jan 21 00:59:47 2015 +0800 Committer: Zhe Zhang Committed: Mon Jan 26 09:43:25 2015 -0800 ---------------------------------------------------------------------- .../src/main/resources/core-default.xml | 24 +++++++++++++++++++ .../hadoop-common/src/site/apt/Tracing.apt.vm | 25 +++++++++++++++----- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ 3 files changed, 46 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/3111cfb1/hadoop-common-project/hadoop-common/src/main/resources/core-default.xml ---------------------------------------------------------------------- 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 e7a382d..bebc263 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 @@ -1653,4 +1653,28 @@ 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 + + + A comma separated list of the fully-qualified class name of classes + implementing SpanReceiver. The tracing system works by collecting + information in structs called 'Spans'. It is up to you to choose + how you want to receive this information by implementing the + SpanReceiver interface. + + + http://git-wip-us.apache.org/repos/asf/hadoop/blob/3111cfb1/hadoop-common-project/hadoop-common/src/site/apt/Tracing.apt.vm ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/site/apt/Tracing.apt.vm b/hadoop-common-project/hadoop-common/src/site/apt/Tracing.apt.vm index 9eda220..f04da33 100644 --- a/hadoop-common-project/hadoop-common/src/site/apt/Tracing.apt.vm +++ b/hadoop-common-project/hadoop-common/src/site/apt/Tracing.apt.vm @@ -16,19 +16,32 @@ --- ${maven.build.timestamp} -Enabling Dapper-like Tracing in HDFS +Enabling Dapper-like Tracing in Hadoop %{toc|section=1|fromDepth=0} -* {Dapper-like Tracing in HDFS} +* {Dapper-like Tracing in Hadoop} ** HTrace {{{https://issues.apache.org/jira/browse/HDFS-5274}HDFS-5274}} added support for tracing requests through HDFS, - using the open source tracing library, {{{https://github.com/cloudera/htrace}HTrace}}. + using the open source tracing library, {{{https://git-wip-us.apache.org/repos/asf/incubator-htrace.git}Apache HTrace}}. Setting up tracing is quite simple, however it requires some very minor changes to your client code. +** Samplers + Configure the samplers in <<>> property: <<>>. + 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.sampler + NeverSampler + ++---- + ** SpanReceivers The tracing system works by collecting information in structs called 'Spans'. @@ -42,7 +55,7 @@ public void receiveSpan(Span span); Configure what SpanReceivers you'd like to use by putting a comma separated list of the fully-qualified class name of classes implementing SpanReceiver - in <<>> property: <<>>. + in <<>> property: <<>>. +---- @@ -83,11 +96,11 @@ public void receiveSpan(Span span); $ git clone https://github.com/cloudera/htrace $ cd htrace/htrace-zipkin $ mvn compile assembly:single - $ cp target/htrace-zipkin-*-jar-with-dependencies.jar $HADOOP_HOME/share/hadoop/hdfs/lib/ + $ cp target/htrace-zipkin-*-jar-with-dependencies.jar $HADOOP_HOME/share/hadoop/common/lib/ +---- The sample configuration for <<>> is shown below. - By adding these to <<>> of NameNode and DataNodes, + By adding these to <<>> of NameNode and DataNodes, <<>> is initialized on the startup. You also need this configuration on the client node in addition to the servers. http://git-wip-us.apache.org/repos/asf/hadoop/blob/3111cfb1/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 49fce24..932fee8 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -536,6 +536,9 @@ Release 2.7.0 - UNRELEASED HDFS-7640. Print NFS Client in the NFS log. (Brandon Li via wheat9) + HDFS-7623. Add htrace configuration properties to core-default.xml and + update user doc about how to enable htrace. (yliu) + OPTIMIZATIONS HDFS-7454. Reduce memory footprint for AclEntries in NameNode.