Skip to content

Commit 2b7ea3c

Browse files
committed
HBASE-29574 Resolve the issue that splitting HFiles results in write failures due to storage policy during bulkload
1 parent 23ee238 commit 2b7ea3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/tool/BulkLoadHFilesTool.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,8 @@ private static void copyHFileHalf(Configuration conf, Path inFile, Path outFile,
832832
}
833833
if (halfWriter == null) {
834834
// init halfwriter
835+
conf = new Configuration(conf);
836+
conf.set(ColumnFamilyDescriptorBuilder.STORAGE_POLICY, familyDescriptor.getStoragePolicy());
835837
halfWriter = initStoreFileWriter(conf, cell, hFileContext, cacheConf, bloomFilterType,
836838
fs, outFile, loc);
837839
}

0 commit comments

Comments
 (0)