Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
So I was trying to write some simple scripts to verify client connections to HBase using the shell and I noticed that the HBase shell always returns 0 even when it can't connect to an HBase server. I'm not sure if this is the best option. What would be neat is if you had some capability to run commands like
hbase shell --command='disable table;\ndrop table;' and it would error out if any of the commands fail to succeed. echo "disable table" | hbase shell could continue to work as it does now.
Attachments
Issue Links
- is related to
-
HBASE-11658 Piped commands to hbase shell should return non-zero if shell command failed.
-
- Closed
-
- relates to
-
HBASE-781 [shell] The hbase shell should allow to assign the result of a command to a variable
-
- Closed
-