Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DFC1BCE20 for ; Thu, 20 Jun 2013 16:39:05 +0000 (UTC) Received: (qmail 64309 invoked by uid 500); 20 Jun 2013 16:39:03 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 64223 invoked by uid 500); 20 Jun 2013 16:39:03 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 64210 invoked by uid 99); 20 Jun 2013 16:39:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jun 2013 16:39:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jeff@opower.com designates 209.85.128.180 as permitted sender) Received: from [209.85.128.180] (HELO mail-ve0-f180.google.com) (209.85.128.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jun 2013 16:38:57 +0000 Received: by mail-ve0-f180.google.com with SMTP id pa12so5183770veb.25 for ; Thu, 20 Jun 2013 09:38:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=XQLa8wnXEcK+UoqES8JxLG/yHtp8oT+/62VzuIelTZg=; b=pdHaGRApOW55wgMKTqjKf493vERMqtq9kIOqB2u5DOswGWzUEjeuezqNIYVUK13PGE PGifnN4JgdoFERZO+fj/B7Ow6jwvCVKr+9ZG7SnYWSwHmoYVOR6MBGeuuE7BfS7sY2ow ad4UYRZDfHwim57UbHT6uNdAlFWsJLdCh9V1LXPTJCV9pUDOacB1haejEKIqPsYy0sx3 ZIuGtBuEdxvoNsU5sdtBHIpDEftNIehrJnu1ZPDFxjXKh28KrsJiZkl8me6DtlhvaHTu EtiYnXW8Q5mqodYUzK7FdgdFuYulCkSR5nQPFslffGzZ7L29QnxSTJRI84M9J0hvVeLM ZQCw== MIME-Version: 1.0 X-Received: by 10.52.24.225 with SMTP id x1mr2978410vdf.13.1371746316564; Thu, 20 Jun 2013 09:38:36 -0700 (PDT) Received: by 10.52.68.9 with HTTP; Thu, 20 Jun 2013 09:38:36 -0700 (PDT) In-Reply-To: <790D4711-BC99-4D24-8287-1F11B38F9C68@gmail.com> References: <790D4711-BC99-4D24-8287-1F11B38F9C68@gmail.com> Date: Thu, 20 Jun 2013 09:38:36 -0700 Message-ID: Subject: Re: initTableMapperJob with a List of Scans From: Jeff Kolesky To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=20cf307f356eebdeb504df989375 X-Gm-Message-State: ALoCoQl9w/sZxXjESVHoT/UH6j9qaMYebOAXp9/nRknJEzl5ingFy/+eHd7gkbO+dJ+3N7yUSYhJ X-Virus-Checked: Checked by ClamAV on apache.org --20cf307f356eebdeb504df989375 Content-Type: text/plain; charset=ISO-8859-1 You should be able to get the table name from the split. Within the map() method: ((TableSplit)context.getInputSplit()).getTableName() That will return the name of the table as a byte array. Jeff On Thu, Jun 20, 2013 at 6:20 AM, Eric Z. Beard wrote: > Hello, > > With a regular map reduce job using MultipleInputs.addInputPath, you can > specify a different mapper class for each input. With the HBase > initTableMapperJob, each Scan Result gets handled by the same mapper. How > can you tell which table you are dealing with in the mapper? > > Thanks, > > Eric Z. Beard -- *Jeff Kolesky* Chief Software Architect *Opower* --20cf307f356eebdeb504df989375--