简体   繁体   English

如何在没有Ctrl-C的情况下终止hbase shell中的扫描操作

[英]How to kill a scan operation in hbase shell without Ctrl-C

Sometimes when I run a scan '<tablename> . 有时我运行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 ? 除了Ctrl-C之外还有办法吗? because Ctrl-C kills the shell process and I don't want to exit the shell. 因为Ctrl-C杀死了shell进程,我不想退出shell。

You could use scan with LIMIT to limit the scan output on shell : 您可以使用LIMIT扫描来限制shell上的扫描输出:

scan 'table', LIMIT => 5 扫描'表',LIMIT => 5

This will show you only 5 rows. 这将只显示5行。 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. 如果您已完成全扫描并希望保持特定行,您也可以按ctlr + s来保持扫描。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM