hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Psaltis <Andrew.Psal...@Webtrends.com>
Subject Re: how to read orcfile,OrcStruct is not public
Date Sat, 28 Sep 2013 02:50:14 GMT
Is the current plan to make HCatalog the only way be which one can read
and/or write ORC files? It seems like there are cases where it would be
nice to use ORC files outside of Pig, Hive, Map Reduce, perhaps as an
alternative to Parquet.

Thanks,
Andrew





On 9/27/13 12:36 AM, "Thejas Nair" <thejas@hortonworks.com> wrote:

>you can use hcatalog input and output formats to read/write ORC from
>mapreduce.
>http://hive.apache.org/docs/hcat_r0.5.0/inputoutput.html
>
>On Thu, Sep 26, 2013 at 9:34 PM, 陈涛 <bhsc.happy@163.com> 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?
>>
>
>-- 
>CONFIDENTIALITY NOTICE
>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.

Mime
View raw message