Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7684211D80 for ; Sat, 19 Jul 2014 00:06:40 +0000 (UTC) Received: (qmail 20753 invoked by uid 500); 19 Jul 2014 00:06:39 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 20700 invoked by uid 500); 19 Jul 2014 00:06:39 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 20685 invoked by uid 99); 19 Jul 2014 00:06:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jul 2014 00:06:39 +0000 Date: Sat, 19 Jul 2014 00:06:39 +0000 (UTC) From: "Allen Wittenauer (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HADOOP-4611) Documentation for Tool interface is a bit busted MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-4611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Allen Wittenauer resolved HADOOP-4611. -------------------------------------- Resolution: Not a Problem Tool is still broken, but for different reasons. I'll file a different jira for that. > Documentation for Tool interface is a bit busted > ------------------------------------------------ > > Key: HADOOP-4611 > URL: https://issues.apache.org/jira/browse/HADOOP-4611 > Project: Hadoop Common > Issue Type: Bug > Components: documentation, util > Reporter: Jeff Hammerbacher > Priority: Minor > Labels: newbie > > The documentation for the Tool interface will not work out of the box. It seems to have taken the Sort() implementation in examples, but has ripped out some important information. > 1) args[1] and args[2] should probably be args[0] and args[1], as most MapReduce tasks don't take the first argument that examples.jar takes > 2) int run() needs to actually return an int > 3) JobConf.setInputPath() and JobConf.setOutputPath() are deprecated. > 4) the call to ToolRunner.run() in main() should take "new MyApp()" instead of "Sort()" as an argument > More generally, a working implementation of Tool in the docs would be handy. -- This message was sent by Atlassian JIRA (v6.2#6252)