【发布时间】:2015-07-05 13:10:48
【问题描述】:
我在我的 ubuntu 64 位系统上安装了 hbase。我可以毫无问题地运行 hbase 启动脚本,结果如下。
hduser@vignesh-ubuntu:/usr/local/hbase$ ./bin/start-hbase.sh
starting master, logging to /usr/local/hbase/bin/../logs/hbase-hduser-master-vignesh-ubuntu.out
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
但是当我启动我的 hbase shell 时,它会抛出错误。
hduser@vignesh-ubuntu:/usr/local/hbase$ ./bin/hbase shell
NativeException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
initialize at /usr/local/hbase/bin/../lib/ruby/hbase/hbase.rb:42
(root) at /usr/local/hbase/bin/../bin/hirb.rb:118
我使用的 JDK 版本是 1.8。路径:/usr/lib/java/jdk1.8.0_31
我试过谷歌搜索,但没有运气。有人可以帮我解决这个问题吗?
【问题讨论】:
-
HBase 在 java 1.8 上仍然不被官方支持。你能用java1.7试试吗?