1
0

[HUDI-1750] Fail to load user's class if user move hudi-spark-bundle jar into spark classpath (#2753)

This commit is contained in:
li36909
2021-04-07 10:33:32 +08:00
committed by GitHub
parent e692c704da
commit 8527590772

View File

@@ -50,7 +50,8 @@ public class ReflectionUtils {
public static Class<?> getClass(String clazzName) {
if (!clazzCache.containsKey(clazzName)) {
try {
Class<?> clazz = Class.forName(clazzName);
Class<?> clazz = Class.forName(clazzName, true,
Thread.currentThread().getContextClassLoader());
clazzCache.put(clazzName, clazz);
} catch (ClassNotFoundException e) {
throw new HoodieException("Unable to load class", e);