You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by 陈涛 <bh...@163.com> on 2013/09/27 06:34:13 UTC

how to read orcfile,OrcStruct is not public

 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?


Re: how to read orcfile,OrcStruct is not public

Posted by Andrew Psaltis <An...@Webtrends.com>.
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" <th...@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, 陈涛 <bh...@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.


Re: how to read orcfile,OrcStruct is not public

Posted by Thejas Nair <th...@hortonworks.com>.
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, 陈涛 <bh...@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.