How to stop a command running in an hbase shell rather than exit a hbase shell

In some cases, I want to exit my running command in the HBase shell, for example, scan statements usually take too much time.

So, I want to stop this command, but I do not need to exit the HBase shell.

The usual way to stop the execution of a command, I used Ctrl + C, which can stop the running command, but also exit the HBase shell, then I need more time to restart the HBase shell.

Is there a better solution to this?

+8
hbase hbase-shell
source share
2 answers

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

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

Another alternative is to use ctrl + z , which pauses the current task in the foreground, the impact will be a paused screen. To resume a paused task, simply press fg to bring it back to the foreground.

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

0
source share

Just use the quit keyword without a semicolon.

0
source share

All Articles