HBase
  1. HBase
  2. HBASE-2281

Hbase shell does not work when started from the build dir

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.90.0
    • Fix Version/s: 0.90.0
    • Component/s: scripts
    • Labels:
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Submitted a patch, please review

      Description

      When we build hbase with mvn -DskipTests package assembly:directory it would be nice to be able to use bin/hbase shell directly from the build dir. At this moment hbase script does not add maven target directories to CLASSPATH.

      1. HBASE-2281.patch
        0.8 kB
        Alexey Kovyrin

        Issue Links

          Activity

          Hide
          stack added a comment -

          Thanks for the patch Alexey Kovyrin. I applied to trunk. The patch is a little fragile with its hard-coding of target but its a big improvement over current condition. Thank you.

          Show
          stack added a comment - Thanks for the patch Alexey Kovyrin. I applied to trunk. The patch is a little fragile with its hard-coding of target but its a big improvement over current condition. Thank you.
          Hide
          Alexey Kovyrin added a comment -

          Attached patch adds maven target directory to classpath:

          ~/work/git/hbase (run-from-build-dir)
          [14:01] $ bin/hbase shell
          (eval):1 warning: already initialized constant REPLICATION_SCOPE
          HBase Shell; enter 'help<RETURN>' for list of supported commands.
          Version: 0.21.0-SNAPSHOT, rUnknown, Wed Mar 3 13:39:18 EST 2010
          hbase(main):001:0>

          Show
          Alexey Kovyrin added a comment - Attached patch adds maven target directory to classpath: ~/work/git/hbase (run-from-build-dir) [14:01] $ bin/hbase shell (eval):1 warning: already initialized constant REPLICATION_SCOPE HBase Shell; enter 'help<RETURN>' for list of supported commands. Version: 0.21.0-SNAPSHOT, rUnknown, Wed Mar 3 13:39:18 EST 2010 hbase(main):001:0>

            People

            • Assignee:
              Alexey Kovyrin
              Reporter:
              Alexey Kovyrin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development