如何在不使用Ctrl-C的情况下杀死hbase shell中的扫描操作 [英] How to kill a scan operation in hbase shell without Ctrl-C
问题描述
有时当我运行扫描'< 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屋!