如何在不使用Ctrl-C的情况下杀死hbase shell中的扫描操作 [英] How to kill a scan operation in hbase shell without Ctrl-C

查看:270
本文介绍了如何在不使用Ctrl-C的情况下杀死hbase shell中的扫描操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时当我运行扫描'< tablename> 时。由于桌子很大,我看到正在打印的大量数据。我想杀死打印数据的过程。除了 Ctrl-C 以外,有没有办法做到这一点?因为 Ctrl-C 杀死了shell进程并且我不想退出shell。

解决方案


$ b scan'table',LIMIT => 5

$

b
$ b

这将只显示5行。您也可以按ctlr + s来保存扫描,如果您已经完成了全面扫描并希望保留在特定的行上。


Sometimes when I run a scan '<tablename>. I see a continuous flood of data being printed because the table is big. I want to kill the process that print the data. Is there a way to do it other than Ctrl-C? because Ctrl-C kills the shell process and I don't want to exit the shell.

解决方案

You could use scan with LIMIT to limit the scan output on shell :

scan 'table', LIMIT => 5

This will show you only 5 rows. You could also press ctlr+s to hold the scan, if you have done a full scan and want to hold on at a specific row.

这篇关于如何在不使用Ctrl-C的情况下杀死hbase shell中的扫描操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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