HBase Shell挂起/冻结 [英] HBase Shell hangs / freezes

查看:280
本文介绍了HBase Shell挂起/冻结的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Ubuntu 12.04上安装了HBase 0.92.1-cdh4.0.1,在伪分布式模式
hbase-master hbase-regionserver zookeeper-server >正在这台机器上运行;
因为HDFS在另一台机器上运行(相应地设置了属性 hbase.rootdir )。


现在我遇到了hbase shell的问题:每当我提交一个create table语句就像

  create'tbl1',{NAME => 'd',COMPRESSION => 'GZ'} 

shell挂起(它不会返回任何东西;永远等待),我必须用ctrl + c杀死它。然而,该命令总是被执行,当我在hbase shell中提交list命令时,该表会被列出。此外,可以通过默认端口60010访问web-ui,创建的表列在用户表下。我已经清理了HDFS上的hbase目录,清理了zookeeper日志,更正了hosts文件(将127.0.1.1更改为127.0.0.1)。这个问题的原因是什么?

解决方案

检入您的HBASE网页界面。是否过渡区域对于该特定表格是活动的。如果是这样,那么问题可能会持续。等待转换完成再重新启动Hbase Master。如果这个问题冒犯了,请在这里粘贴你的hbase日志。

I've installed HBase 0.92.1-cdh4.0.1 on Ubuntu 12.04 in Pseudo-Distributed mode.
hbase-master, hbase-regionserver and zookeeper-server are running on this machine; the HDFS is running on another machine (property hbase.rootdir set accordingly).

Now I have a problem with the "hbase shell": whenever I submit a create table statement like

   create 'tbl1', {NAME => 'd', COMPRESSION => 'GZ'}

the shell hangs (it does not return anything; waits forever) and I have to kill it with ctrl+c. However the command always gets executed and when I submit the "list" command in the "hbase shell", the table gets listed. Also the web-ui can be accessed through the default port 60010 and the created tables are listed under the user tables. I've already cleaned the hbase directory on the HDFS, cleaned the zookeeper logs, corrected the hosts file (changed 127.0.1.1 to 127.0.0.1). What could be the cause of this problem?

解决方案

Check in your HBASE web UI. whether "Regions in Transition" is active for that particular table. If so then the problem may persist. Wait for the transition to complete else Restart the Hbase Master. If this problem comes offend kindly paste ur hbase logs here.

这篇关于HBase Shell挂起/冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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