Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B480E200B8A for ; Sat, 10 Sep 2016 00:06:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B3322160ACA; Fri, 9 Sep 2016 22:06:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 07353160AC2 for ; Sat, 10 Sep 2016 00:06:44 +0200 (CEST) Received: (qmail 8960 invoked by uid 500); 9 Sep 2016 22:06:41 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 8694 invoked by uid 99); 9 Sep 2016 22:06:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2016 22:06:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E57581A01CD; Fri, 9 Sep 2016 22:06:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.528 X-Spam-Level: X-Spam-Status: No, score=-1.528 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-1.426, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=effectivemachines.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id p1mk2y4BpsMn; Fri, 9 Sep 2016 22:06:38 +0000 (UTC) Received: from effectivemachines.com (effectivemachines.com [104.236.136.112]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 698D75FBB1; Fri, 9 Sep 2016 22:06:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by effectivemachines.com (Postfix) with ESMTP id BB557165161; Fri, 9 Sep 2016 15:06:30 -0700 (PDT) Received: from effectivemachines.com ([127.0.0.1]) by localhost (effectivemachines.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id DJcdPHJWjf3e; Fri, 9 Sep 2016 15:06:30 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by effectivemachines.com (Postfix) with ESMTP id 482A41644E3; Fri, 9 Sep 2016 15:06:30 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.9.2 effectivemachines.com 482A41644E3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=effectivemachines.com; s=D35149BA-5A53-11E6-AF53-2EA667C55D35; t=1473458790; bh=r33AbgVohFpzycPnuVkoUUeYlJiBANZKVDCunCaAD2M=; h=Content-Type:Mime-Version:Subject:From:Date: Content-Transfer-Encoding:Message-Id:To; b=eievcvD1cgjD6U3YT5tMXOMAPkPhwYTLtNXhw978DFZPYMfhYmhT7iZ9znELoC80k lC24afymoGAtwt/kVzr8+YJ4ZX5dIMt28NoNOLBk3Si69orMCYr4DZT/rirXriOn/N zw5uY2qGJ9OiU4GBnzZrt1HwDj98h074ygsBEB+E= X-Virus-Scanned: amavisd-new at effectivemachines.com Received: from effectivemachines.com ([127.0.0.1]) by localhost (effectivemachines.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id znt0SEvHlE5Y; Fri, 9 Sep 2016 15:06:30 -0700 (PDT) Received: from dhcp-201.private.iobm.com (108-193-1-249.lightspeed.sntcca.sbcglobal.net [108.193.1.249]) by effectivemachines.com (Postfix) with ESMTPSA id E873A1644D4; Fri, 9 Sep 2016 15:06:29 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [VOTE] Merge HADOOP-13341 From: Allen Wittenauer In-Reply-To: <8B829FFE-74B2-4208-9F16-92EE319BF286@hortonworks.com> Date: Fri, 9 Sep 2016 15:06:56 -0700 Cc: Hadoop Common , "yarn-dev@hadoop.apache.org" , "hdfs-dev@hadoop.apache.org" , "mapreduce-dev@hadoop.apache.org" Content-Transfer-Encoding: quoted-printable Message-Id: <30D2B1AE-679C-4589-8801-7854E5B18137@effectivemachines.com> References: <1D8BF1EF-AA55-47D9-A50B-B5970A97DBA9@effectivemachines.com> <8B829FFE-74B2-4208-9F16-92EE319BF286@hortonworks.com> To: Anu Engineer X-Mailer: Apple Mail (2.3124) archived-at: Fri, 09 Sep 2016 22:06:45 -0000 > On Sep 9, 2016, at 2:15 PM, Anu Engineer = wrote: >=20 > +1, Thanks for the effort. It brings in a world of consistency to the = hadoop vars; and as usual reading your bash code was very educative. Thanks! There's still a handful of HDFS and MAPRED vars that begin with = HADOOP, but those should be trivial to knock out after a pattern has = been established. > I had a minor suggestion though. since we have classified the _OPTS to = client and daemon opts, for new people it is hard to know which of these = subcommands are daemon vs. a client command. Maybe we can add a special = char in the help message to indicate which are daemons or just document = it? Only way I know right now is to look the appropriate script and see = if HADOOP_SUBCMD_SUPPORTDAEMONIZATION is set to true. That's a great suggestion. Would it be better if the usage = output was more like: ---snip--- Usage: hdfs [OPTIONS] SUBCOMMAND [SUBCOMMAND OPTIONS] OPTIONS is none or any of: --buildpaths attempt to add class files from build = tree --config dir Hadoop config directory --daemon (start|status|stop) operate on a daemon --debug turn on shell script debug mode --help usage information --hostnames list[,of,host,names] hosts to use in worker mode --hosts filename list of hosts to use in worker mode --loglevel level set the log4j level for this command --workers turn on worker mode SUBCOMMAND is one of: Clients: cacheadmin configure the HDFS cache classpath prints the class path needed to get the = hadoop jar and the required libraries crypto configure HDFS encryption zones ... Daemons: balancer run a cluster balancing utility datanode run a DFS datanode namenode run the DFS name node ... ---snip--- We do something similar in Apache Yetus and shouldn't be too = hard to do in Apache Hadoop. We couldn't read SUPPORTDAEMONIZATION to = place things, but as long as people put their new commands in the = correct section in hadoop_usage, it should work. --------------------------------------------------------------------- To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-dev-help@hadoop.apache.org