[
https://issues.apache.org/jira/browse/HADOOP-15365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16427604#comment-16427604
]
Ajay Kumar commented on HADOOP-15365:
-------------------------------------
[~maobaolong], thanks for submitting the patch. We are already discussing this
issue in [HADOOP-12760]. Approach used in JdkAdaptUtil is more concise, have
you already tested in jdk 8 and 9? If it works than we can discuss it further
in [HADOOP-12760] and close this as duplicate.
> cannot find symbol sun.misc.Cleaner
> -----------------------------------
>
> Key: HADOOP-15365
> URL: https://issues.apache.org/jira/browse/HADOOP-15365
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: common
> Reporter: maobaolong
> Assignee: maobaolong
> Priority: Major
> Attachments: HADOOP-15365.001.patch
>
>
> {code:java}
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR]
> /hadoop/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/nativeio/NativeIO.java:[332,17]
> cannot find symbol
> symbol: class Cleaner
> location: package sun.misc
> [ERROR]
> /hadoop/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/CryptoStreamUtils.java:[40,21]
> cannot find symbol
> symbol: class Cleaner
> location: package sun.misc
> {code}
> We should use reflection to adapt jdk8 and jdk9
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]