I'm getting this strange error when trying to launch hbase shell. I'm using CDH5.
# hbase shell
TypeError: can't dup NilClass
dup at org/jruby/RubyKernel.java:1940
initialize at file:/usr/lib/hbase/lib/jruby-complete-1.6.8.jar!/META-INF/jruby.home/lib/ruby/1.8/pathname.rb:212
(root) at /usr/lib/hbase/bin/../bin/hirb.rb:41
Has it occurred to anyone? How can I resolve this?