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 F092F10941 for ; Tue, 8 Oct 2013 02:26:45 +0000 (UTC) Received: (qmail 24569 invoked by uid 500); 8 Oct 2013 02:26:43 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 24497 invoked by uid 500); 8 Oct 2013 02:26:43 -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 24458 invoked by uid 500); 8 Oct 2013 02:26:43 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 24441 invoked by uid 99); 8 Oct 2013 02:26:43 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Oct 2013 02:26:43 +0000 Date: Tue, 8 Oct 2013 02:26:43 +0000 (UTC) From: "Thejas M Nair (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-5452) HCatalog e2e test Pig_HBase_1 and Pig_HBase_2 are failing with ClassCastException 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/HIVE-5452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thejas M Nair updated HIVE-5452: -------------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) Patch committed to trunk. Thanks Deepesh for the patch, and Eugene for the review! > HCatalog e2e test Pig_HBase_1 and Pig_HBase_2 are failing with ClassCastException > --------------------------------------------------------------------------------- > > Key: HIVE-5452 > URL: https://issues.apache.org/jira/browse/HIVE-5452 > Project: Hive > Issue Type: Bug > Components: HCatalog > Affects Versions: 0.12.0 > Reporter: Deepesh Khandelwal > Assignee: Deepesh Khandelwal > Fix For: 0.13.0 > > Attachments: HIVE-5452.patch > > > HCatalog e2e test Pig_HBase_1 tries to read data from a table it created using the org.apache.hcatalog.hbase.HBaseHCatStorageHandler using the hcat loader org.apache.hive.hcatalog.pig.HCatLoader(). Following is the pig script. > {code} > a = load 'pig_hbase_1' using org.apache.hive.hcatalog.pig.HCatLoader(); store a into '/user/hcat/out/root-1380933875-pig.conf/Pig_HBase_1_0_benchmark.out'; > {code} > Following error is thrown in the log: > {noformat} > org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobCreationException: ERROR 2017: Internal error creating job configuration. > at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getJob(JobControlCompiler.java:850) > at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.compile(JobControlCompiler.java:296) > at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:190) > at org.apache.pig.PigServer.launchPlan(PigServer.java:1322) > at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1307) > at org.apache.pig.PigServer.execute(PigServer.java:1297) > at org.apache.pig.PigServer.executeBatch(PigServer.java:375) > at org.apache.pig.PigServer.executeBatch(PigServer.java:353) > at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:140) > at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:202) > at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:173) > at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:84) > at org.apache.pig.Main.run(Main.java:607) > at org.apache.pig.Main.main(Main.java:156) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.util.RunJar.main(RunJar.java:212) > Caused by: java.io.IOException: java.lang.ClassCastException: org.apache.hive.hcatalog.mapreduce.InputJobInfo cannot be cast to org.apache.hcatalog.mapreduce.InputJobInfo > at org.apache.hive.hcatalog.mapreduce.HCatInputFormat.setInput(HCatInputFormat.java:87) > at org.apache.hive.hcatalog.mapreduce.HCatInputFormat.setInput(HCatInputFormat.java:63) > at org.apache.hive.hcatalog.pig.HCatLoader.setLocation(HCatLoader.java:119) > at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getJob(JobControlCompiler.java:475) > ... 18 more > Caused by: java.lang.ClassCastException: org.apache.hive.hcatalog.mapreduce.InputJobInfo cannot be cast to org.apache.hcatalog.mapreduce.InputJobInfo > at org.apache.hcatalog.hbase.HBaseHCatStorageHandler.configureInputJobProperties(HBaseHCatStorageHandler.java:106) > at org.apache.hive.hcatalog.common.HCatUtil.getInputJobProperties(HCatUtil.java:466) > at org.apache.hive.hcatalog.mapreduce.InitializeInput.extractPartInfo(InitializeInput.java:161) > at org.apache.hive.hcatalog.mapreduce.InitializeInput.getInputJobInfo(InitializeInput.java:137) > at org.apache.hive.hcatalog.mapreduce.InitializeInput.setInput(InitializeInput.java:86) > at org.apache.hive.hcatalog.mapreduce.HCatInputFormat.setInput(HCatInputFormat.java:85) > ... 21 more > {noformat} > The pig script should instead be using the org.apache.hcatalog.pig.HCatLoader() instead. -- This message was sent by Atlassian JIRA (v6.1#6144)