You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Aditya Kishore (Jira)" <ji...@apache.org> on 2020/06/02 18:56:00 UTC

[jira] [Commented] (HBASE-24227) [JDK11] shell fails to launch

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

Aditya Kishore commented on HBASE-24227:
----------------------------------------

I am noticing the same error when attempting to run HBase Shell 1.4.12 with JDK 11.
{noformat}
root@node8:~# export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
root@node8:~# hbase shell
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.java.invokers.RubyToJavaInvoker (file:/opt/mapr/hbase/hbase-1.4.12/lib/jruby-complete-1.6.8.jar) to method java.lang.Object.registerNatives()
WARNING: Please consider reporting this to the maintainers of org.jruby.java.invokers.RubyToJavaInvoker
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
ArgumentError: wrong number of arguments (0 for 1)
  method_added at file:/opt/mapr/hbase/hbase-1.4.12/lib/jruby-complete-1.6.8.jar!/builtin/javasupport/core_ext/object.rb:10
  method_added at file:/opt/mapr/hbase/hbase-1.4.12/lib/jruby-complete-1.6.8.jar!/builtin/javasupport/core_ext/object.rb:129
       Pattern at file:/opt/mapr/hbase/hbase-1.4.12/lib/jruby-complete-1.6.8.jar!/builtin/java/java.util.regex.rb:2
        (root) at file:/opt/mapr/hbase/hbase-1.4.12/lib/jruby-complete-1.6.8.jar!/builtin/java/java.util.regex.rb:1
       require at org/jruby/RubyKernel.java:1062
        (root) at file:/opt/mapr/hbase/hbase-1.4.12/lib/jruby-complete-1.6.8.jar!/builtin/java/java.util.regex.rb:42
        (root) at /opt/mapr/hbase/hbase-1.4.12/bin/hirb.rb:38
{noformat}
Works as expected with JDK 8.
{noformat}
root@node8:~# export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
root@node8:~# hbase shell
HBase Shell
Use "help" to get list of supported commands.
Use "exit" to quit this interactive shell.
Version 1.4.12.0-mapr-SNAPSHOT, rbee5e35222f5088df5ca3f7108c3b6aef261aabd, Fri May 29 07:58:04 PDT 2020
hbase(main):001:0>
{noformat}
Although this is with HBase version 1.4.12, I suspect the similar issue exists with 3.0.0-SNAPSHOT as well.

[~janh], what is the value of $JAVA_HOME picked by HBase Shell in your environment?
{noformat}
hbase(main):001:0> system 'env | grep JAVA_HOME'
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
=> true
hbase(main):002:0>
{noformat}

> [JDK11] shell fails to launch
> -----------------------------
>
>                 Key: HBASE-24227
>                 URL: https://issues.apache.org/jira/browse/HBASE-24227
>             Project: HBase
>          Issue Type: Sub-task
>          Components: shell
>    Affects Versions: 3.0.0-alpha-1
>            Reporter: Nick Dimiduk
>            Priority: Blocker
>
> {noformat}
> $ JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home ./bin/hbase shell
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.apache.hadoop.hbase.util.UnsafeAvailChecker (file:/Users/ndimiduk/repos/apache/hbase/hbase-common/target/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
> HBase Shell
> Use "help" to get list of supported commands.
> Use "exit" to quit this interactive shell.
> For Reference, please visit: http://hbase.apache.org/book.html#shell
> Version 3.0.0-SNAPSHOT, rbcacc4ce939e60fd69891df6315a39aef852b567, Tue Apr 21 15:47:27 PDT 2020
> Took 0.0000 seconds                                                                                                                                                                                         
> ArgumentError: wrong number of arguments (1 for 0)
>            ` at uri:classloader:/jruby/kernel/jruby/process_manager.rb:32
>            ` at uri:classloader:/jruby/kernel/jruby/process_manager.rb:54
>   initialize at /Users/ndimiduk/repos/apache/hbase/hbase-shell/src/main/ruby/irb/hirb.rb:46
>        start at /Users/ndimiduk/repos/apache/hbase/bin/../bin/hirb.rb:207
>       <main> at /Users/ndimiduk/repos/apache/hbase/bin/../bin/hirb.rb:219
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)