You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2024/05/06 08:24:51 UTC

(hbase) branch branch-3 updated: HBASE-28459 HFileOutputFormat2 ClassCastException with s3 magic committer (#5851)

This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-3 by this push:
     new 7052e8caada HBASE-28459 HFileOutputFormat2 ClassCastException with s3 magic committer (#5851)
7052e8caada is described below

commit 7052e8caada4ffbef40545c5d72b07ac6c395ccc
Author: Sravishtta Kommineni <49...@users.noreply.github.com>
AuthorDate: Mon May 6 04:15:32 2024 -0400

    HBASE-28459 HFileOutputFormat2 ClassCastException with s3 magic committer (#5851)
    
    Co-authored-by: Sravi Kommineni <sk...@hubspot.com>
    Signed-off-by: Duo Zhang <zh...@apache.org>
    Reviewed-by: Ray Mattingly <rm...@gmail.com>
    (cherry picked from commit 917f2f1ec0c0fa113cbcdc8ca1332c0e7f9b481b)
---
 .../java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java b/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java
index fcbcd2d9f59..2e288f24680 100644
--- a/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java
+++ b/hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat2.java
@@ -86,8 +86,8 @@ import org.apache.hadoop.mapreduce.OutputCommitter;
 import org.apache.hadoop.mapreduce.OutputFormat;
 import org.apache.hadoop.mapreduce.RecordWriter;
 import org.apache.hadoop.mapreduce.TaskAttemptContext;
-import org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter;
 import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
+import org.apache.hadoop.mapreduce.lib.output.PathOutputCommitter;
 import org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner;
 import org.apache.yetus.audience.InterfaceAudience;
 import org.slf4j.Logger;
@@ -194,7 +194,7 @@ public class HFileOutputFormat2 extends FileOutputFormat<ImmutableBytesWritable,
     final TaskAttemptContext context, final OutputCommitter committer) throws IOException {
 
     // Get the path of the temporary output file
-    final Path outputDir = ((FileOutputCommitter) committer).getWorkPath();
+    final Path outputDir = ((PathOutputCommitter) committer).getWorkPath();
     final Configuration conf = context.getConfiguration();
     final boolean writeMultipleTables =
       conf.getBoolean(MULTI_TABLE_HFILEOUTPUTFORMAT_CONF_KEY, false);