You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "lrz (Jira)" <ji...@apache.org> on 2021/04/08 01:17:00 UTC
[jira] [Resolved] (HUDI-1750) Fail to load user's class if user
move hudi-spark-bundle_2.11-0.7.0.jar into spark classpath
[ https://issues.apache.org/jira/browse/HUDI-1750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
lrz resolved HUDI-1750.
-----------------------
Resolution: Fixed
> Fail to load user's class if user move hudi-spark-bundle_2.11-0.7.0.jar into spark classpath
> --------------------------------------------------------------------------------------------
>
> Key: HUDI-1750
> URL: https://issues.apache.org/jira/browse/HUDI-1750
> Project: Apache Hudi
> Issue Type: Bug
> Reporter: lrz
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.9.0
>
> Attachments: image-2021-04-01-10-55-43-760.png
>
>
> Hudi use Class.forName(clazzName) to load user's class, which classloader is same as call,see here:
> !image-2021-04-01-10-55-43-760.png!
> if user move hudi-spark-bundle jar into spark classPath, and use --jar to add customer jars, then the caller classLoader will be AppClassLoader, and the customer jars will be load by spark's MutableURLClassLoader, then lead to ClassNotFoundException
--
This message was sent by Atlassian Jira
(v8.3.4#803005)