hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thejas Nair <>
Subject Re: how to read orcfile,OrcStruct is not public
Date Fri, 27 Sep 2013 06:36:54 GMT
you can use hcatalog input and output formats to read/write ORC from mapreduce.

On Thu, Sep 26, 2013 at 9:34 PM, 陈涛 <> wrote:
>  i am trying to write orcfile(snappy) instead of sequencefile(lzo) in mapreduce,but OrcStruct
is not public include getFieldValue method:
> class OrcStruct implements Writable {
>   private Object[] fields;
>   OrcStruct(int children) {
>     fields = new Object[children];
>   }
>   Object getFieldValue(int fieldIndex) {
>     return fields[fieldIndex];
>   }
> }
> so,how can i read orcfile?

NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

View raw message