hbase shell:TypeError:无法复制NilClass [英] hbase shell: TypeError: can't dup NilClass

查看:592
本文介绍了hbase shell:TypeError:无法复制NilClass的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试启动 hbase shell 时出现此奇怪错误。

 #hbase shell 
TypeError:can not dup NilClass
dup at org / jruby / RubyKernel.java:1940
初始化文件:/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

有没有发生过任何人?我该如何解决这个问题?

解决方案

我遇到了类似的异常。原因是因为,我的老版本的hbase实际上指向了路径。所以当我输入hbase shell时,会调用旧的hbase。我正确纠正了我的环境变量并将其指向新的hbase,然后工作正常。
所以你的也是类似的问题。

  export HBASE_HOME =<将正确的路径添加到hbase-dir> 
export PATH = $ HBASE_HOME / bin:$ PATH

这对我有用。 p>

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?

解决方案

I faced a similar exception. The reason was because, my older version of hbase was actually pointed in the path. so when I type hbase shell, the older hbase was invoked. I corrected my environment variables properly and pointed it to new hbase, then it was working fine. So yours will be also similar issue.

export HBASE_HOME=<add the proper path to hbase-dir>
export PATH=$HBASE_HOME/bin:$PATH

This worked for me.

这篇关于hbase shell:TypeError:无法复制NilClass的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆