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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 0.98.13, 1.2.0, 2.0.0
    • Component/s: shell
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      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.patch
          10 kB
          Sean Busbey
        2. test_shell.sh
          3 kB
          Sean Busbey
        3. HBASE-11658.manual_test.log
          18 kB
          Sean Busbey
        4. HBASE_11658-v2.patch
          10 kB
          Sean Busbey

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: