[ 
https://issues.apache.org/jira/browse/TEZ-3860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

László Bodor updated TEZ-3860:
------------------------------
    Attachment:     (was: TEZ-3860.03.patch)

> JDK9: ReflectionUtils may not use URLClassLoader
> ------------------------------------------------
>
>                 Key: TEZ-3860
>                 URL: https://issues.apache.org/jira/browse/TEZ-3860
>             Project: Apache Tez
>          Issue Type: Sub-task
>            Reporter: Zoltan Haindrich
>            Assignee: László Bodor
>            Priority: Major
>         Attachments: TEZ-3860.01.patch, TEZ-3860.02.patch, TEZ-3860.03.patch
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The following code
> https://github.com/apache/tez/blob/master/tez-api/src/main/java/org/apache/tez/common/ReflectionUtils.java#L125
> is not compatible with JDK9 since the classloader is an AppClassLoader
> causes exceptions like this:
> {code}
> java.lang.ClassCastException: 
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to 
> java.base/java.net.URLClassLoader
>       at 
> org.apache.tez.common.ReflectionUtils.addResourcesToSystemClassLoader(ReflectionUtils.java:125)
>  ~[tez-api-0.9.0.jar:0.9.0]
>       at 
> org.apache.tez.dag.utils.RelocalizationUtils.addUrlsToClassPath(RelocalizationUtils.java:57)
>  ~[tez-common-0.9.0.jar:0.9.0]
>       at 
> org.apache.tez.dag.app.dag.impl.DAGImpl$StartTransition.transition(DAGImpl.java:1793)
>  ~[tez-dag-0.9.0.jar:0.9.0]
>       at 
> org.apache.tez.dag.app.dag.impl.DAGImpl$StartTransition.transition(DAGImpl.java:1776)
>  ~[tez-dag-0.9.0.jar:0.9.0]
>       at 
> org.apache.hadoop.yarn.state.StateMachineFactory$SingleInternalArc.doTransition(StateMachineFactory.java:362)
>  ~[hadoop-yarn-common-2.8.1.jar:?]
>       at 
> org.apache.hadoop.yarn.state.StateMachineFactory.doTransition(StateMachineFactory.java:302)
>  ~[hadoop-yarn-common-2.8.1.jar:?]
>       at 
> org.apache.hadoop.yarn.state.StateMachineFactory.access$300(StateMachineFactory.java:46)
>  ~[hadoop-yarn-common-2.8.1.jar:?]
>       at 
> org.apache.hadoop.yarn.state.StateMachineFactory$InternalStateMachine.doTransition(StateMachineFactory.java:448)
>  ~[hadoop-yarn-common-2.8.1.jar:?]
>       at 
> org.apache.tez.state.StateMachineTez.doTransition(StateMachineTez.java:59) 
> ~[tez-dag-0.9.0.jar:0.9.0]
>       at org.apache.tez.dag.app.dag.impl.DAGImpl.handle(DAGImpl.java:1156) 
> [tez-dag-0.9.0.jar:0.9.0]
>       at org.apache.tez.dag.app.dag.impl.DAGImpl.handle(DAGImpl.java:147) 
> [tez-dag-0.9.0.jar:0.9.0]
>       at 
> org.apache.tez.dag.app.DAGAppMaster$DagEventDispatcher.handle(DAGAppMaster.java:2251)
>  [tez-dag-0.9.0.jar:0.9.0]
>       at 
> org.apache.tez.dag.app.DAGAppMaster$DagEventDispatcher.handle(DAGAppMaster.java:2242)
>  [tez-dag-0.9.0.jar:0.9.0]
>       at 
> org.apache.tez.common.AsyncDispatcher.dispatch(AsyncDispatcher.java:180) 
> [tez-common-0.9.0.jar:0.9.0]
>       at 
> org.apache.tez.common.AsyncDispatcher$1.run(AsyncDispatcher.java:115) 
> [tez-common-0.9.0.jar:0.9.0]
>       at java.base/java.lang.Thread.run(Thread.java:844) [?:?]
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to