[
https://issues.apache.org/jira/browse/ORC-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun closed ORC-44.
----------------------------
> How to flush orc writer?
> ------------------------
>
> Key: ORC-44
> URL: https://issues.apache.org/jira/browse/ORC-44
> Project: ORC
> Issue Type: Bug
> Environment: hadoop version: 2.5.0-cdh5.3.2
> hive version: 0.13.1
> Reporter: Tao Li
> Assignee: Owen O'Malley
> Priority: Major
>
> I am using org.apache.hadoop.hive.ql.io.orc.Writer API to generate orc file.
> I wan to flush the memory data to hdfs. Method close() is work for me, but it
> will close the orc file. Is there some method like flush() which I can use to
> flush the memory but not close the orc file?
> {code:java}
> OrcFile.WriterOptions writerOptions = OrcFile.writerOptions(conf);
> writerOptions.inspector(deserializer.getObjectInspector());
> Writer writer = OrcFile.createWriter(new Path(file), writerOptions);
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)