[ https://issues.apache.org/jira/browse/HBASE-22172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16814910#comment-16814910 ]
Sakthi commented on HBASE-22172: -------------------------------- {quote}I did see a warning when trying to launch the hbase shell. {quote} Was this after the patch applied [~elserj]. I see that error before the patch but not after. Could you please share the steps you followed? Was it just after the launch or while some operations on the shell? {quote}Where does the prefix java.base come from? Is it maybe wrong (as I feel like your suppression here should have caught the above warning)? {quote} It follows this particular syntax: _--add-opens module/package=target-module(,target-module)*_ . So looks like [java.base|https://docs.oracle.com/en/java/javase/11/docs/api/java.base/module-summary.html] contains the foundational APIs. Also I followed the *Understanding Runtime Access Warnings* from this [migration doc|https://docs.oracle.com/en/java/javase/11/migrate/migration-guide.pdf]. {quote}something else to fix {quote} Was planning to file a JIRA for that. Thanks Josh. > 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 > Attachments: hbase-22172.master.001.patch > > > 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)