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.ha...@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.