运行hbase shell时无法找到或加载主类org.jruby.Main [英] Could not find or load main class org.jruby.Main when run hbase shell
本文介绍了运行hbase shell时无法找到或加载主类org.jruby.Main的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我完成了hbase的安装并尝试在终端中运行 hbase shell 命令。
indi60 @ arrasyid:/hack/hbase-0.98.5-hadoop2$ ./bin/hbase shell
错误:无法找到或加载主类org.jruby.Main
我试着用Google搜索这个错误,但是我没有找到任何解决方法。请告诉我该怎么办这个错误。我应该添加一些导出配置还是安装一些东西。谢谢!
解决方案
我有同样的问题。我通过在〜/ .bashrc中设置HBASE_HOME来解决问题。确保在$ HBASE_HOME / lib中找到 jruby-complete-1.6.8.jar 文件。
I am new in hbase. I installed hbase-0.98.5-hadoop2 single node in my Ubuntu 12.04. I finished hbase installation and tried to run hbase shell command in my terminal.
indi60@arrasyid:/hack/hbase-0.98.5-hadoop2$ ./bin/hbase shell
Error: Could not find or load main class org.jruby.Main
I tried googling this error, but I did not find any solution about it. Please tell me what should I do for this error. Should I add some export configuration or install some stuff. Thanks!
解决方案
I had the same issue. I solved by set HBASE_HOME in ~/.bashrc. Make sure that jruby-complete-1.6.8.jar file found in your $HBASE_HOME/lib.
这篇关于运行hbase shell时无法找到或加载主类org.jruby.Main的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文