[ https://issues.apache.org/jira/browse/HIVE-6163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stamatis Zampetakis updated HIVE-6163: -------------------------------------- I cleared the fixVersion field since this ticket is not resolved. Please review this ticket and if the fix is already committed to a specific version please set the version accordingly and mark the ticket as RESOLVED. According to the JIRA guidelines (https://cwiki.apache.org/confluence/display/Hive/HowToContribute) the fixVersion should be set only when the issue is resolved/closed. > OrcOutputFormat#getRecordWriter creates OrcRecordWriter with relative path > -------------------------------------------------------------------------- > > Key: HIVE-6163 > URL: https://issues.apache.org/jira/browse/HIVE-6163 > Project: Hive > Issue Type: Bug > Components: File Formats > Affects Versions: 0.12.0 > Reporter: Branky Shao > Priority: Major > Fix For: 0.12.1 > > > Hi, > OrcOutputFormat#getRecordWriter creates OrcRecordWriter instance using a file > with relative path actually. > return new OrcRecordWriter(new Path(name), OrcFile.writerOptions(conf)); > https://github.com/apache/hive/blob/7263b3bb1632b1a7c6ef5d2363e58020e1fdd756/ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcOutputFormat.java#L114 > The fix should be very simple, just as RCFileOutputFormat#getRecordWriter, > append work output path as the parent: > Path outputPath = getWorkOutputPath(job); > Path file = new Path(outputPath, name); > https://github.com/apache/hive/blob/d85eea2dc5decbf23e8f4010b32f1817cf057ea0/ql/src/java/org/apache/hadoop/hive/ql/io/RCFileOutputFormat.java#L78 -- This message was sent by Atlassian Jira (v8.20.10#820010)