[HUDI-1750] Fail to load user's class if user move hudi-spark-bundle jar into spark classpath (#2753)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user