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

Piped commands to hbase shell should return non-zero if shell command failed.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 0.98.13, 1.2.0, 2.0.0
    • shell
    • None
    • Reviewed
    • Adds a noninteractive mode (-n or --noninteractive) to the hbase shell that exits with a non-zero error code on failed or invalid shell command executions, and exits with a zero error code upon successful execution.

    Description

      See HBASE-11655. We would like the shell to return non-zero when a command that has been piped to it fails in "scripting mode". This could be due to invalid commands or commands issued with invalid arguments.

      This would lower the barrier to entry for hbase admins so they could effectively script some operations.

      Attachments

        1. HBASE_11658-v2.patch
          10 kB
          Sean Busbey
        2. HBASE-11658.manual_test.log
          18 kB
          Sean Busbey
        3. HBASE-11658.patch
          10 kB
          Sean Busbey
        4. test_shell.sh
          3 kB
          Sean Busbey

        Issue Links

          Activity

            People

              busbey Sean Busbey
              jmhsieh Jonathan Hsieh
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: