[
https://issues.apache.org/jira/browse/HBASE-22172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16814861#comment-16814861
]
Josh Elser commented on HBASE-22172:
------------------------------------
I can confirm your patch helps, Sakthi!
I did see a warning when tryign to launch the hbase shell.
{noformat}
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.util.io.FilenoUtil
(file:/Users/jelser/projects/hbase-copy.git/hbase-assembly/target/hbase-3.0.0-SNAPSHOT/lib/ruby/jruby-complete-9.1.13.0.jar)
to method sun.nio.ch.SelChImpl.getFD()
WARNING: Please consider reporting this to the maintainers of
org.jruby.util.io.FilenoUtil
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{noformat}
I feel like trying to get all of these warnings suppressed is chasing your tail
for little good :(
However, for this specific case, you do have the following:
{code:java}
HBASE_OPTS="$HBASE_OPTS --add-opens java.base/sun.nio.ch=ALL-UNNAMED"{code}
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)? I wonder if
we have any contacts with folks who have jumped early onto the jdk11 train or
might do/have done work in JDK to tell us more about how this is supposed to
work?
Related, I also see this:
{noformat}
unsupported Java version "11", defaulting to 1.7{noformat}
Busbey mentioned that this is HBase expecting a "1.x" version from the JDK and
getting confused about the "11" it gets back. So, something else to fix :)
> 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)