Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4945A173E2 for ; Thu, 16 Oct 2014 11:24:34 +0000 (UTC) Received: (qmail 54023 invoked by uid 500); 16 Oct 2014 11:24:33 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 53950 invoked by uid 500); 16 Oct 2014 11:24:33 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 53936 invoked by uid 500); 16 Oct 2014 11:24:33 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 53932 invoked by uid 99); 16 Oct 2014 11:24:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2014 11:24:33 +0000 Date: Thu, 16 Oct 2014 11:24:33 +0000 (UTC) From: "Lorand Bendig (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-8484) HCatalog throws an exception if Pig job is of type 'fetch' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Lorand Bendig created HIVE-8484: ----------------------------------- Summary: HCatalog throws an exception if Pig job is of type 'fetch' Key: HIVE-8484 URL: https://issues.apache.org/jira/browse/HIVE-8484 Project: Hive Issue Type: Bug Components: HCatalog Affects Versions: 0.14.0 Reporter: Lorand Bendig Fix For: 0.14.0 When Pig tries to retrieve result in fetch mode through HCatalog then HCatLoader#setLocation(String location, Job job) can't set the outputschema because HCatUtil#checkJobContextIfRunningFromBackend(job) always returns false : {code} public static boolean checkJobContextIfRunningFromBackend(JobContext j) { if (j.getConfiguration().get("mapred.task.id", "").equals("") && !("true".equals(j.getConfiguration().get("pig.illustrating")))) { return false; } return true; } {code} This is because in fetch mode we don't have a mapred.task.id. A null outputschema will raise an exception when HCatBaseLoader#getNext() is called: (ERROR 6018: Error converting read value to tuple). -- This message was sent by Atlassian JIRA (v6.3.4#6332)