我在Mac-OSX-Yosemite-10.10.2中使用命令hbase
安装了brew install hbase
。我收到了以下错误:
warning: -J-Dfile.encoding=UTF-8 argument ignored (launched in same VM?)
warning: -J-XX:MaxPermSize=1024m argument ignored (launched in same VM?)
warning: -J-Xmx4096m argument ignored (launched in same VM?)
TypeError: can't convert Pathname into String
require at org/jruby/RubyKernel.java:1071
require at file:/usr/local/Cellar/hbase/1.0.1/libexec/lib/jruby-complete-1.6.8.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36
(root) at /usr/local/Cellar/hbase/1.0.1/libexec/bin/../bin/hirb.rb:105
hbase version
的结果:
util.VersionInfo: HBase 1.0.1
java -version
的结果:
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
我还下载了' hbase-1.0.1.1-bin.tar.gz',并且正在运行bin/hbase shell
,但它也给了我同样的错误。让我知道如何解决这个问题?