[
https://issues.apache.org/jira/browse/MAPREDUCE-7332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17308092#comment-17308092
]
Ahmed Hussein edited comment on MAPREDUCE-7332 at 3/24/21, 6:42 PM:
--------------------------------------------------------------------
{code:bash}
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java17:1.0
[ERROR]
/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/security/SpillCallBackPathsFinder.java:184:
Undefined reference: java.util.concurrent.ConcurrentHashMap.KeySetView
[ERROR]
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/security/SpillCallBackPathsFinder.java:184:
Undefined reference: java.util.concurrent.ConcurrentHashMap.KeySetView
java.util.concurrent.ConcurrentHashMap.keySet()
{code}
The root cause of the problem is that {{ConcurrentHashMap.keySet()}} changed
between JDK7 and JDK8 . A runtime error is thrown if branch-2.10 is compiled
using JDK8.
branch-2.10 fails if it is compiled without {{-Danimal.sniffer.skip}}
was (Author: ahussein):
{code:bash}
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java17:1.0
[ERROR]
/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/security/SpillCallBackPathsFinder.java:184:
Undefined reference: java.util.concurrent.ConcurrentHashMap.KeySetView
[ERROR]
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/security/SpillCallBackPathsFinder.java:184:
Undefined reference: java.util.concurrent.ConcurrentHashMap.KeySetView
java.util.concurrent.ConcurrentHashMap.keySet()
{code}
The root cause of the problem is that {{ConcurrentHashMap.keySet()}} changed
between JDK7 and JDK8 .
branch-2.10 fails if it is compiled without {{-Danimal.sniffer.skip}}
> Fix SpillCallBackPathsFinder to use JDK7 on branch-2.10
> -------------------------------------------------------
>
> Key: MAPREDUCE-7332
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-7332
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: job submission, security
> Reporter: Ahmed Hussein
> Assignee: Ahmed Hussein
> Priority: Major
>
> I mistakenly uploaded a patch for branch-2.10 that uses JDK8.
> Yetus did not fail though. It should be investigated why it was not failing
> if JDK8+ is used in the code.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]