无法在独立模式下启动Hbase shell
问题描述:
我在我的ubuntu 64位系统上安装了hbase。我可以运行hbase start script而没有任何问题,下面是结果。无法在独立模式下启动Hbase shell
[email protected]:/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时,它会抛出错误。
[email protected]:/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
我试过谷歌搜索,但没有运气。有人能帮我解决这个问题吗?
正式支持java 1.8的HBase。你可以尝试使用java1.7吗? –