首页 > 解决方案 > M1 MacOS 上的 Hbase shell 错误:fstat unimplemented unsupported or native support failed to load

问题描述

我按照Hbase shell 中的第一个答案得到了这个错误:fstat unimplemented unsupported or native support failed to load尝试在 M1 macOS Big Sur 11.5.2 上修复问题,在我通过 brew 安装 Jruby 和 AsciiDoctor 后它不起作用。这些是我得到的:

daniel@localhost ~ % hbase shell
Picked up _JAVA_OPTIONS: -Djava.io.tmpdir=/tmp
Picked up _JAVA_OPTIONS: -Djava.io.tmpdir=/tmp
2021-09-06 15:32:01,748 WARN  [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
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/2.0/book.html#shell
Version 2.4.5, r03b8c0cf426cbae3284225b73040ec574d5bac34, Tue Jul 27 09:44:16 PDT 2021
Took 0.0010 seconds                                                                                                                                    
NotImplementedError: fstat unimplemented unsupported or native support failed to load; see https://github.com/jruby/jruby/wiki/Native-Libraries
  initialize at org/jruby/RubyIO.java:1015 open at org/jruby/RubyIO.java:1156
  initialize at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/irb/input-method.rb:141
  initialize at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/irb/context.rb:70
  initialize at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/irb.rb:410
  initialize at uri:classloader:/irb/hirb.rb:47
  start at classpath:/jar-bootstrap.rb:225
  <main> at classpath:/jar-bootstrap.rb:242

现在我想知道这是JDK版本的问题还是Apple Silicon MacOS上的指定问题。

发现我的JDK版本是ZuluJDK 16,然后我安装了ZuluJDK 8和JDK 8,改了$JAVA_HOME重试,问题还是出现了。

有什么建议吗?

谢谢。

软件版本:JDK:ZuluJDK 16 & 8、JDK 8、JRuby:9.2.19.0、Hadoop:3.3.1、HBase:2.4.5。

标签: javahadoophbasejruby

解决方案


推荐阅读