Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-13428 [DOC] Migration to hbase-2.0.0
  3. HBASE-20276

[shell] Revert shell REPL change and document

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.4.0, 2.0.0
    • Fix Version/s: 1.4.4, 2.0.0
    • Component/s: documentation, shell
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change
    • Release Note:
      Hide
      <!-- markdown -->
      The HBase shell now behaves as it did prior to the changes that started in HBASE-15965. Namely, some shell commands return values that may be further manipulated within the shell's IRB session.

      The command line option `--return-values` is no longer acted on by the shell since it now always behaves as it did when passed this parameter. Passing the option results in a harmless warning about this change.

      Users who wish to maintain the behavior seen in the 1.4.0-1.4.2 releases of the HBase shell should refer to the section _irbrc_ in the reference guide for how to configure their IRB session to avoid echoing expression results to the console.
      Show
      <!-- markdown --> The HBase shell now behaves as it did prior to the changes that started in HBASE-15965 . Namely, some shell commands return values that may be further manipulated within the shell's IRB session. The command line option `--return-values` is no longer acted on by the shell since it now always behaves as it did when passed this parameter. Passing the option results in a harmless warning about this change. Users who wish to maintain the behavior seen in the 1.4.0-1.4.2 releases of the HBase shell should refer to the section _irbrc_ in the reference guide for how to configure their IRB session to avoid echoing expression results to the console.

      Description

      Feedback from Mike Drob on HBASE-19158:

      Shell:
      HBASE-19770. There was another issue opened where this was identified as a problem so maybe the shape will change further, but I can't find it now.

      New commentary from Sean Busbey:

      This was a follow on to HBASE-15965. That change effectively makes it so none of our ruby wrappers can be used to build expressions in an interactive REPL. This is a pretty severe change (most of my tips on HBASE-15611 will break, I think).

      I think we should

      a) Have a DISCUSS thread, spanning dev@ and user@
      b) based on the outcome of that thread, either default to the new behavior or the old behavior
      c) if we keep the HBASE-15965 behavior as the default, flag it as incompatible, call it out in the hbase 2.0 upgrade section, and update docs (two examples: the output in the shell_exercises sections would be wrong, and the _table_variables section won't work)
      d) In either case document the new flag in the ref guide

        Attachments

        1. HBASE-20276-branch-1.v4.patch
          2 kB
          Sean Busbey
        2. HBASE-20276.3.patch
          9 kB
          Sean Busbey
        3. HBASE-20276.2.patch
          13 kB
          Sean Busbey
        4. HBASE-20276.1.patch
          9 kB
          Sean Busbey
        5. HBASE-20276.0.patch
          8 kB
          Sean Busbey

          Issue Links

            Activity

              People

              • Assignee:
                busbey Sean Busbey
                Reporter:
                busbey Sean Busbey
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: