Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop command running in hbase shell and not exit hbase shell

In some times I want quit from my running command in HBase shell, such as a scan ops usually take too much time.

So I want to stop running this command, but I don't want exit HBase shell.

The usual way for me to stop the running command, I used Ctrl+C, which can stop the running command, but it also exit from HBase shell, then I need to take more time to reEnter the HBase shell.

Is there any better way to solution for this?

like image 422
Devin Wu Avatar asked Dec 26 '15 02:12

Devin Wu


1 Answers

ctrl+s pauses the screen(console), ctrl+q resumes it back, it can be used to control console output of any application (like cat longfile.txt etc.) not just hbase shell.

https://en.wikipedia.org/wiki/Software_flow_control#Applications

Another alternative option is to use ctrl+z which suspends the current foreground job the impact will be a paused screen. To resume the suspended task just press fg to bring it back to foreground.

https://www.thegeekdiary.com/understanding-the-job-control-commands-in-linux-bg-fg-and-ctrlz/

like image 127
mbaxi Avatar answered Sep 25 '22 12:09

mbaxi