hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Connell, Chuck" <Chuck.Conn...@nuance.com>
Subject RE: Hive custom inputfomat error.
Date Thu, 20 Sep 2012 15:15:32 GMT
You might try adding “ --auxpath /path/to/jar/dir “ to the Hive command line.

Chuck Connell
Nuance R&D Data Team
Burlington, MA


From: Manish [mailto:manishbhoge@rocketmail.com]
Sent: Thursday, September 20, 2012 11:10 AM
To: user
Cc: user@hadoop.apache.org
Subject: Hive custom inputfomat error.

I have created custom input format in java. Now I want to use that input format when creating
table in Hive.

Here are my steps:
1.    Created jar file of the program.
2.    Copied jar in /usr/lib/hadoop.
3.    Added the path in CLASSPATH.

now here is my code:

Create table hitdata_fnl
(
col_0  string,
col_1  string,
col_2  string,
col_3  string,
col_4  string,
col_5  string,
col_6  string,
col_7  string,
col_8  string,
col_9  string,
col_10  string
)
ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t'
STORED AS INPUTFORMAT 'com.tgam.hadoop.mapreduce.inputfilerecordreader' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat';

Error :
FAILED: Error in metadata: Class not found: com.tgam.hadoop.mapreduce.inputfilerecordreader
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask

Please help on this error.

Thank You,
Manish.
Mime
View raw message