Support Questions
Find answers, ask questions, and share your expertise

Hive: Use customized InputFileFormat - SemanticException 1:14 Input format must implement InputFormat.

Hive: Use customized InputFileFormat - SemanticException 1:14 Input format must implement InputFormat.

Explorer

Hi,

Could you guide me to use the customised InputFormat in hive.
As I was browsing on using customised FixedInputFormat, the suggestion says that hive does not support new API(mapreduce). Is it still the case now? as I am getting the below error while executing select on the table.

Add jar /export/home/rmou/hqljar

create table rev_udf.tbl1
(
f1 string
)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\t'
STORED AS INPUTFORMAT 'com.hive.customUDF.FixedLengthInputFormat'
OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
TBLPROPERTIES("fixedlengthinputformat.record.length"="50");

LOAD data local inpath '' INTO table rev_udf.tbl1;
select * from rev_udf.tbl1;

FAILED: SemanticException 1:14 Input format must implement InputFormat. Error encountered near token 'tbl1'

Thank you,