简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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