All Orc e2e tests fail on tez.
There are two issue:
1. hivelibdir etc is not set in tez.conf
2. OrcStorage produce empty output file
Digging into #2, the problem is in this code in PigProcessor:
fileOutput.commit() invokes both RecordWriter.close() and committer.commitTask(). However, OrcNewOutputFormate will generate output file only after RecordWriter.close (if the output file is small), fileOutput.isCommitRequired will not detect this file, thus skip fileOutput.commit().
Changing the code to invoke fileOutput.close explicitly fix the issue. fileOutput.commit will invoke close again, but there is no side effect since close will check if it has been already called.
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|4d 16h 42m||1||Daniel Dai||05/Aug/14 00:11|
|108d 5h 47m||1||Daniel Dai||21/Nov/14 05:59|
|Status||Resolved [ 5 ]||Closed [ 6 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Hadoop Flags||Reviewed [ 10343 ]|
|Resolution||Fixed [ 1 ]|