java - 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。
解决方案
推荐阅读
- swift - 为什么 Xcode 会抛出错误但仍在编译?
- asynchronous - GRPC 异步 API 与流
- python - 在 Pandas Dataframe 中为每个 user_id 运行“自第一次出现以来的天数”
- r - 将两列合并为一列,并且新列中的值对应于相邻列中值的唯一组合
- typescript - 使用对象属性的类型作为函数参数
- markdown - 如何使用 pandoc 通过 Beamer 将 Markdown 转换为可读/可编辑的 LaTex?
- javascript - 使用 Javascript 和 html 列出目录的所有文件
- databricks - Koalas 数据框随着 Deltalake 的更新而实时更新
- r - 在函数内使用 dplyr 按字符串动态过滤
- reactjs - PrivateRoute无法渲染OverviewMap组件包装?