Return-Path: X-Original-To: apmail-pig-commits-archive@www.apache.org Delivered-To: apmail-pig-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 79BE9D8CA for ; Sun, 21 Oct 2012 00:04:20 +0000 (UTC) Received: (qmail 83678 invoked by uid 500); 21 Oct 2012 00:04:20 -0000 Delivered-To: apmail-pig-commits-archive@pig.apache.org Received: (qmail 83653 invoked by uid 500); 21 Oct 2012 00:04:20 -0000 Mailing-List: contact commits-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list commits@pig.apache.org Received: (qmail 83645 invoked by uid 99); 21 Oct 2012 00:04:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Oct 2012 00:04:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Oct 2012 00:04:19 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 42D3823888FE for ; Sun, 21 Oct 2012 00:03:36 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1400539 - in /pig/branches/branch-0.10: CHANGES.txt src/org/apache/pig/impl/util/UDFContext.java Date: Sun, 21 Oct 2012 00:03:36 -0000 To: commits@pig.apache.org From: daijy@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121021000336.42D3823888FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: daijy Date: Sun Oct 21 00:03:35 2012 New Revision: 1400539 URL: http://svn.apache.org/viewvc?rev=1400539&view=rev Log: PIG-2940: HBaseStorage store fails in secure cluster Modified: pig/branches/branch-0.10/CHANGES.txt pig/branches/branch-0.10/src/org/apache/pig/impl/util/UDFContext.java Modified: pig/branches/branch-0.10/CHANGES.txt URL: http://svn.apache.org/viewvc/pig/branches/branch-0.10/CHANGES.txt?rev=1400539&r1=1400538&r2=1400539&view=diff ============================================================================== --- pig/branches/branch-0.10/CHANGES.txt (original) +++ pig/branches/branch-0.10/CHANGES.txt Sun Oct 21 00:03:35 2012 @@ -36,6 +36,8 @@ PIG-2727: PigStorage Source tagging does BUG FIXES +PIG-2940: HBaseStorage store fails in secure cluster (rohini via daijy) + PIG-2821: HBaseStorage should work with secure hbase (rohini via daijy) PIG-2890: Revert PIG-2578 (dvryaboy) Modified: pig/branches/branch-0.10/src/org/apache/pig/impl/util/UDFContext.java URL: http://svn.apache.org/viewvc/pig/branches/branch-0.10/src/org/apache/pig/impl/util/UDFContext.java?rev=1400539&r1=1400538&r2=1400539&view=diff ============================================================================== --- pig/branches/branch-0.10/src/org/apache/pig/impl/util/UDFContext.java (original) +++ pig/branches/branch-0.10/src/org/apache/pig/impl/util/UDFContext.java Sun Oct 21 00:03:35 2012 @@ -211,7 +211,11 @@ public class UDFContext { * @return */ public boolean isFrontend() { - return (this.jconf == null || jconf.get("mapred.task.id") == null); + // mapred.task.id is for MR1 + // mapreduce.job.application.attempt.id is for MR2 + return (this.jconf == null + || (jconf.get("mapred.task.id") == null && + jconf.get("mapreduce.job.application.attempt.id") == null)); } /**