[HUDI-3763] Fixing hadoop conf class loading for inline reading (#5194)
This commit is contained in:
committed by
GitHub
parent
23b31225df
commit
7dfb168003
@@ -196,6 +196,7 @@ public class HoodieHFileDataBlock extends HoodieDataBlock {
|
|||||||
// is appropriately carried over
|
// is appropriately carried over
|
||||||
Configuration inlineConf = new Configuration(blockContentLoc.getHadoopConf());
|
Configuration inlineConf = new Configuration(blockContentLoc.getHadoopConf());
|
||||||
inlineConf.set("fs." + InLineFileSystem.SCHEME + ".impl", InLineFileSystem.class.getName());
|
inlineConf.set("fs." + InLineFileSystem.SCHEME + ".impl", InLineFileSystem.class.getName());
|
||||||
|
inlineConf.setClassLoader(Thread.currentThread().getContextClassLoader());
|
||||||
|
|
||||||
Path inlinePath = InLineFSUtils.getInlineFilePath(
|
Path inlinePath = InLineFSUtils.getInlineFilePath(
|
||||||
blockContentLoc.getLogFile().getPath(),
|
blockContentLoc.getLogFile().getPath(),
|
||||||
|
|||||||
Reference in New Issue
Block a user