HBase
  1. HBase
  2. HBASE-5842

Passing shell commands as an argument

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Later
    • Affects Version/s: 0.94.0
    • Fix Version/s: None
    • Component/s: shell
    • Labels:
      None

      Description

      Many times we've required scans of .META. to analyze issues with the cluster we work on, and to have the result in a file we can pass around we usually end up doing something like:

      echo "scan '.META.'| hbase shell > meta-scan.txt

      This can rather be simplified as something like the following instead, with support for a commands reading argument:

      hbase shell -c "scan '.META.'"

      [Note though: File reading is possible already, i.e. {{hbase shell file.hs}}, but then thats two steps and we usually don't keep a file around for just a meta table scan.]

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Harsh J
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development