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 E6946177B5 for ; Tue, 7 Apr 2015 01:51:12 +0000 (UTC) Received: (qmail 24069 invoked by uid 500); 7 Apr 2015 01:51:12 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 23999 invoked by uid 500); 7 Apr 2015 01:51:12 -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 23988 invoked by uid 99); 7 Apr 2015 01:51:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Apr 2015 01:51:12 +0000 Date: Tue, 7 Apr 2015 01:51:12 +0000 (UTC) From: "xuhuan (JIRA)" To: dev@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-10234) Problems using custom inputformat MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 xuhuan created HIVE-10234: ----------------------------- Summary: Problems using custom inputformat Key: HIVE-10234 URL: https://issues.apache.org/jira/browse/HIVE-10234 Project: Hive Issue Type: Bug Components: File Formats Affects Versions: 0.13.1 Environment: CentOS release 6.3 CDH-5.3.1-1.cdh5.3.1.p0.5 hive-0.13.1-cdh5.3.1 Inputformat: https://github.com/twitter/elephant-bird/blob/master/rcfile/src/main/java/com/twitter/elephantbird/mapreduce/input/RCFileProtobufInputFormat.java Reporter: xuhuan Priority: Critical I apply the RCFileProtobufInputFormat from twitter's elephantbird project into hive to handle Protobuf records which are written in a RCFile file format. What I have done is belowing: 1. compile the soure code of RCFileProtobufInputFormat and make a jar 2. add the jar to hive_aux_jar_path and update the config of server and client 3. create table using inputformat "com.twitter.elephantbird.mapreduce.input.RCFileProtobufInputFormat" Creating table is ok.but when I excute a query like "select * from table test"(there is no data in table test),I got these mistake: FAILED: SemanticException 1:14 Input format must implement InputFormat. Error encountered near token test. I found some cases in stackoverflow,someones said that's because the custom inputformat class implement the new API(org.apache.hadoop.marpreduce) and RCFileProtobufInputFormat class indeed extends the new API. I'm wondering wheather a custom inputformat must extend the old API(org.apache.hadoop.marpred)? Could this be the reason of my problem? -- This message was sent by Atlassian JIRA (v6.3.4#6332)