Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 416F018C2E for ; Thu, 28 Apr 2016 22:00:53 +0000 (UTC) Received: (qmail 68276 invoked by uid 500); 28 Apr 2016 22:00:52 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 68186 invoked by uid 500); 28 Apr 2016 22:00:52 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 68175 invoked by uid 99); 28 Apr 2016 22:00:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Apr 2016 22:00:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 4FFAEC0440 for ; Thu, 28 Apr 2016 22:00:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.798 X-Spam-Level: X-Spam-Status: No, score=0.798 tagged_above=-999 required=6.31 tests=[FSL_HELO_BARE_IP_2=1.499, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id lbBPYOwkLFX6 for ; Thu, 28 Apr 2016 22:00:49 +0000 (UTC) Received: from relayvx11b.securemail.intermedia.net (relayvx11b.securemail.intermedia.net [64.78.52.184]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 52BD35F19A for ; Thu, 28 Apr 2016 22:00:48 +0000 (UTC) Received: from securemail.intermedia.net (localhost [127.0.0.1]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by emg-ca-1-1.localdomain (Postfix) with ESMTPS id CA0CC53F2E for ; Thu, 28 Apr 2016 15:00:46 -0700 (PDT) Subject: Re: handlerCount MIME-Version: 1.0 x-echoworx-msg-id: f347ea08-ce9b-48c3-9a06-18190dc54c6c x-echoworx-emg-received: Thu, 28 Apr 2016 15:00:46.769 -0700 x-echoworx-message-code-hashed: 6beac36b101a23fe5b2ceca291ab9fce1eca0172203f0a6b08052cae64791482 x-echoworx-action: delivered Received: from 10.254.155.14 ([10.254.155.14]) by emg-ca-1-1 (JAMES SMTP Server 2.3.2) with SMTP ID 480 for ; Thu, 28 Apr 2016 15:00:46 -0700 (PDT) Received: from MBX080-W4-CO-1.exch080.serverpod.net (unknown [10.224.117.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by emg-ca-1-1.localdomain (Postfix) with ESMTPS id 9567753F26 for ; Thu, 28 Apr 2016 15:00:46 -0700 (PDT) Received: from MBX080-W4-CO-2.exch080.serverpod.net (10.224.117.102) by MBX080-W4-CO-1.exch080.serverpod.net (10.224.117.101) with Microsoft SMTP Server (TLS) id 15.0.1130.7; Thu, 28 Apr 2016 15:00:45 -0700 Received: from MBX080-W4-CO-2.exch080.serverpod.net ([10.224.117.102]) by mbx080-w4-co-2.exch080.serverpod.net ([10.224.117.102]) with mapi id 15.00.1130.005; Thu, 28 Apr 2016 15:00:45 -0700 From: Chris Nauroth To: "hdfs-dev@hadoop.apache.org" Thread-Topic: handlerCount Thread-Index: AQHRoZgYc1I3c8bPtketZ6Kd1gyUSZ+f750A Date: Thu, 28 Apr 2016 22:00:44 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [50.248.208.113] x-source-routing-agent: Processed Content-Type: text/plain; charset="us-ascii" Content-ID: <9022F4284090204F82C9A63E5E9EF9D5@exch080.serverpod.net> Content-Transfer-Encoding: quoted-printable Hello, In general, configuration property default values will be defined in two places: 1) hdfs-default.xml, which defines the default property values when a deployment doesn't specifically set them and 2) DFSConfigKeys, a class that defines constant default values that the code uses if for some reason no default value is found during the configuration lookup. https://github.com/apache/hadoop/blob/rel/release-2.7.2/hadoop-hdfs-project /hadoop-hdfs/src/main/resources/hdfs-default.xml#L602-L606 https://github.com/apache/hadoop/blob/rel/release-2.7.2/hadoop-hdfs-project /hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java#L473-L 474 --Chris Nauroth On 4/28/16, 2:51 PM, "Kun Ren" wrote: >Hi Genius, > >I have a quick question: > >I remembered I saw the default value for HandlerCout is 10(The number of >Handler threads), but I can not find where it is defined in the source >code, could you please point to me where I can find it in the 2.7.2 >codebase? Thanks a lot.