[ 
https://issues.apache.org/jira/browse/HBASE-22172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16811357#comment-16811357
 ] 

Sakthi commented on HBASE-22172:
--------------------------------

I tried to run a PE with --illegal-access=warn to list out all such warnings. 
Here's what I have so far: 

{code:java}
WARNING: Illegal reflective access by 
org.apache.hadoop.hbase.util.UnsafeAvailChecker 
(file:/Users/jatsakthi/test/HBASWARNING: Illegal reflective access by 
org.apache.hadoop.hbase.util.UnsafeAvailChecker 
(file:/Users/jatsakthi/test/HBASE_TEST_AREA/hbase-3.0.0-SNAPSHOT/lib/hbase-common-3.0.0-SNAPSHOT.jar)
 to method java.nio.Bits.unaligned()
WARNING: Illegal reflective access by 
org.apache.hadoop.security.authentication.util.KerberosUtil 
(file:/Users/jatsakthi/test/HBASE_TEST_AREA/hbase-3.0.0-SNAPSHOT/lib/hadoop-auth-2.7.7.jar)
 to method sun.security.krb5.Config.getInstance()
WARNING: Illegal reflective access by 
org.apache.hadoop.security.authentication.util.KerberosUtil 
(file:/Users/jatsakthi/test/HBASE_TEST_AREA/hbase-3.0.0-SNAPSHOT/lib/hadoop-auth-2.7.7.jar)
 to method sun.security.krb5.Config.getDefaultRealm()
WARNING: Illegal reflective access by 
org.apache.hbase.thirdparty.com.google.protobuf.UnsafeUtil 
(file:/Users/jatsakthi/test/HBASE_TEST_AREA/hbase-3.0.0-SNAPSHOT/lib/hbase-shaded-protobuf-2.1.0.jar)
 to field java.nio.Buffer.address
WARNING: Illegal reflective access by 
org.apache.hbase.thirdparty.io.netty.util.internal.ReflectionUtil 
(file:/Users/jatsakthi/test/HBASE_TEST_AREA/hbase-3.0.0-SNAPSHOT/lib/hbase-shaded-netty-2.1.0.jar)
 to constructor java.nio.DirectByteBuffer(long,int)
WARNING: Illegal reflective access by 
org.apache.hbase.thirdparty.io.netty.util.internal.ReflectionUtil 
(file:/Users/jatsakthi/test/HBASE_TEST_AREA/hbase-3.0.0-SNAPSHOT/lib/hbase-shaded-netty-2.1.0.jar)
 to method java.nio.Bits.unaligned()
WARNING: Illegal reflective access by 
org.apache.hbase.thirdparty.io.netty.util.internal.ReflectionUtil 
(file:/Users/jatsakthi/test/HBASE_TEST_AREA/hbase-3.0.0-SNAPSHOT/lib/hbase-shaded-netty-2.1.0.jar)
 to field sun.nio.ch.SelectorImpl.selectedKeys
WARNING: Illegal reflective access by 
org.apache.hbase.thirdparty.io.netty.util.internal.ReflectionUtil 
(file:/Users/jatsakthi/test/HBASE_TEST_AREA/hbase-3.0.0-SNAPSHOT/lib/hbase-shaded-netty-2.1.0.jar)
 to field sun.nio.ch.SelectorImpl.publicSelectedKeys
{code}

> Suppress Java 11 reflective access warnings
> -------------------------------------------
>
>                 Key: HBASE-22172
>                 URL: https://issues.apache.org/jira/browse/HBASE-22172
>             Project: HBase
>          Issue Type: Task
>            Reporter: Sakthi
>            Assignee: Sakthi
>            Priority: Major
>              Labels: jdk11
>
> While running a Java 8 compiled hbase on Java 11 system, I found the 
> following warnings being thrown. I think we can add the "--add-opens" flag to 
> HBASE_OPTS (if the jdk version is 11) to suppress this warning.
> {code:java}
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by 
> org.apache.hadoop.hbase.util.UnsafeAvailChecker 
> (file:/Users/jatsakthi/test/HBASE_TEST_AREA/hbase-3.0.0-SNAPSHOT/lib/hbase-common-3.0.0-SNAPSHOT.jar)
>  to method java.nio.Bits.unaligned()
> WARNING: Please consider reporting this to the maintainers of 
> org.apache.hadoop.hbase.util.UnsafeAvailChecker
> WARNING: Use --illegal-access=warn to enable warnings of further illegal 
> reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to