Skip to content

Commit

Permalink
HBASE-28459 HFileOutputFormat2 ClassCastException with s3 magic commi…
Browse files Browse the repository at this point in the history
…tter
  • Loading branch information
Sravi Kommineni committed Apr 26, 2024
1 parent 6c6e776 commit bca8be1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
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;
Expand Down Expand Up @@ -194,7 +194,7 @@ static <V extends Cell> RecordWriter<ImmutableBytesWritable, V> createRecordWrit
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);
Expand Down

0 comments on commit bca8be1

Please sign in to comment.