How to stop command running in hbase shell and not exit hbase shell
Asked Answered
F

1

11

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?

Forgery answered 26/12, 2015 at 2:9 Comment(1)
Possible duplicate of How to kill a scan operation in hbase shellAlmagest
P
2

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/

Palatial answered 20/4, 2018 at 10:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.