Return-Path: Delivered-To: apmail-hadoop-hbase-user-archive@minotaur.apache.org Received: (qmail 24423 invoked from network); 7 Aug 2009 14:42:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Aug 2009 14:42:10 -0000 Received: (qmail 82391 invoked by uid 500); 7 Aug 2009 14:42:17 -0000 Delivered-To: apmail-hadoop-hbase-user-archive@hadoop.apache.org Received: (qmail 82344 invoked by uid 500); 7 Aug 2009 14:42:16 -0000 Mailing-List: contact hbase-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-user@hadoop.apache.org Delivered-To: mailing list hbase-user@hadoop.apache.org Received: (qmail 82334 invoked by uid 99); 7 Aug 2009 14:42:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 14:42:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of xinejar22@googlemail.com designates 72.14.220.156 as permitted sender) Received: from [72.14.220.156] (HELO fg-out-1718.google.com) (72.14.220.156) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Aug 2009 14:42:04 +0000 Received: by fg-out-1718.google.com with SMTP id 22so125347fge.12 for ; Fri, 07 Aug 2009 07:41:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=ezv8z8oicdikZQXlW0BsEGGQeh611KotXQrHxCtR9+c=; b=CN9hMPveAg32qwm+Hdp8ZQzDRRr2+CCPGMt9LKGnYPoBFxmtA3422QBSAnnRE6SzT5 1Sc7x0LfxvspR+WxHlBlm7Ln6LxM1Pj+K1ZKnVZpcWvuhN6L3GfhRJtbdFzhfEewKYTX cXjroloHyyFWgNvIcxvk3rlYemQwxQNr3yUUY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=fEAJnlLh1wUCqoF8KulYJTPRfEk3Q/Dt7VNnJe5HkT8iePGY50MuDt7u6sBbCVMw+c VRTAHLPe2d6ooUntiNVuLBVa4DIk/G7zmlAe42Wdlw6TR8F0O4k20NyFcK5IipElooUR QLP2FFIhwP7decSo3n+JrvvZLlvvXEypi9ayc= MIME-Version: 1.0 Received: by 10.86.99.15 with SMTP id w15mr997786fgb.31.1249656104526; Fri, 07 Aug 2009 07:41:44 -0700 (PDT) Date: Fri, 7 Aug 2009 16:41:44 +0200 Message-ID: <115373b00908070741x43f50bb7j35420cc0d111b82@mail.gmail.com> Subject: Iinput path pointing on an hbase table and not a text file? From: Xine Jar To: hbase-user@hadoop.apache.org, xinejar22@googlemail.com Content-Type: multipart/alternative; boundary=000e0cd249ca33a52b04708e3c6d X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd249ca33a52b04708e3c6d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hallo, I am using hadoop 0.19.1 and I was previously writing my application setting a text file as an input path for the job. * Therefore the main four involved parameters were the following:* public static class Map extends MapReduceBase implements Mapper { ....... public void map(LongWritable key,*Text value*, OutputCollector output, Reporter reporter) throws IOException { ....} } public static void main(String[] args) throws Exception { .... conf.setInputFormat(*TextInputFormat*.class); FileInputFormat.setInputPaths(conf, *new Path(args[0]*)); .... } *Question *I would like to write a mapreduce application that reads from an hbase table, summing some values etc,...and writing the output result in a textfile. I have already created this hbase table (using version 0.19.3) I need now to pass it's name as an input path to the job how can I do it? I have red here and there and found out that the InputFormat shall be set to "*TableInputFormat.class*" but what about the setInputPaths ?and the Value class in the mapper? Thank you, CJ --000e0cd249ca33a52b04708e3c6d--