steveloughran commented on code in PR #1450:
URL: https://github.com/apache/phoenix/pull/1450#discussion_r1280377772
##########
phoenix-core/src/main/java/org/apache/phoenix/mapreduce/MultiHfileOutputFormat.java:
##########
@@ -122,11 +123,11 @@ public RecordWriter<TableRowkeyPair, Cell>
getRecordWriter(TaskAttemptContext co
* @return
* @throws IOException
*/
- static <V extends Cell> RecordWriter<TableRowkeyPair, V>
createRecordWriter(final TaskAttemptContext context)
+ static <V extends Cell> RecordWriter<TableRowkeyPair, V>
createRecordWriter(
+ final TaskAttemptContext context, final OutputCommitter committer)
throws IOException {
// Get the path of the temporary output file
- final Path outputPath = FileOutputFormat.getOutputPath(context);
- final Path outputdir = new FileOutputCommitter(outputPath,
context).getWorkPath();
+ final Path outputdir = ((PathOutputCommitter)
committer).getOutputPath();
Review Comment:
this is no longer a h path, it is the final path of the work, the same value
as L128 in the original code.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]