Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-21152

Add parameter validations for commands in HBase shell

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Balancer, shell
    • Labels:

      Description

      One of our customers got confused with "balance_switch" command in HBase shell.

      They mistakenly ran "balance_swich status" command instead of "balancer_enabled" command to see if the balancer is enabled. However, like the following, it didn't cause any errors and it looks like the command was successful.

      hbase> balance_switch status
      1 active master, 0 backup masters, 1 servers, 0 dead, 2.0000 average load
      Took 0.0055 seconds
      Previous balancer state : true
      Took 0.0041 seconds
      => "true"
      

      To make matters worse, the "balance_swich status" command will make the balancer disabled.

      Of course, the command was wrong but I think that's a little bit confusing. So I think we need to add parameter validations for commands in HBase shell. I'll check if we need to add validations for any other commands in this Jira.

        Attachments

          Activity

            People

            • Assignee:
              brfrn169 Toshihiro Suzuki
              Reporter:
              brfrn169 Toshihiro Suzuki
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: