Skip to content

Commit 2a8cb2c

Browse files
committed
[HUDI-4002] Fix ClassCastException of HoodieWrapperFileSystem
1 parent a1d82b4 commit 2a8cb2c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • hudi-common/src/main/java/org/apache/hudi/common/fs

hudi-common/src/main/java/org/apache/hudi/common/fs/FSUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,7 @@ public static Configuration registerFileSystem(Path file, Configuration conf) {
633633
String scheme = FSUtils.getFs(file.toString(), conf).getScheme();
634634
returnConf.set("fs." + HoodieWrapperFileSystem.getHoodieScheme(scheme) + ".impl",
635635
HoodieWrapperFileSystem.class.getName());
636+
returnConf.setClassLoader(Thread.currentThread().getContextClassLoader());
636637
return returnConf;
637638
}
638639

0 commit comments

Comments
 (0)