Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.94.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Follow-on ticket to HBASE-4605. Extend the shell functionality to include altering a table to add a Constraint.

      Discussion around this can be found at:
      http://search-hadoop.com/m/EeYb3dezMM

        Issue Links

          Activity

          Jesse Yates created issue -
          Hide
          Jesse Yates added a comment -

          As a follow-on ticket to 4605, this means adding the support for altering a table more easily. Specifically, this means doing something like:

          alter("table").addCoprocessor(…)
          alter("table").addColumnFamily(…)
          …
          

          and then for constraints, something like:

          alter("table").addConstraint(…)
          alter("table").enableConstraints
          …
          

          with those methods being added dynamically by a 'constraint module' in the jruby code. This would also serve as an example for how further shell extension can be done in a modular manner.

          This ticket may also become a more major revamp for the how the shell works, e.g. dropping into a table context, etc as described in the discussion.

          Show
          Jesse Yates added a comment - As a follow-on ticket to 4605, this means adding the support for altering a table more easily. Specifically, this means doing something like: alter( "table" ).addCoprocessor(…) alter( "table" ).addColumnFamily(…) … and then for constraints, something like: alter( "table" ).addConstraint(…) alter( "table" ).enableConstraints … with those methods being added dynamically by a 'constraint module' in the jruby code. This would also serve as an example for how further shell extension can be done in a modular manner. This ticket may also become a more major revamp for the how the shell works, e.g. dropping into a table context, etc as described in the discussion.
          Jesse Yates made changes -
          Field Original Value New Value
          Link This issue is blocked by HBASE-4605 [ HBASE-4605 ]
          Hide
          Jesse Yates added a comment -

          Adding link to original constraints ticket.

          Show
          Jesse Yates added a comment - Adding link to original constraints ticket.
          Jesse Yates made changes -
          Link This issue depends upon HBASE-5548 [ HBASE-5548 ]
          Hide
          Jesse Yates added a comment -

          Linking to jira for getting an individual table. The original pain around this was in that constraints only make sense for a single table, so we could just dynamically tie it to a table.

          By dynamically, I was thinking either via opening the Table class back up to add methods or doing a dynamic lookup of all classes in a table-extensions folder and including them in the Table class.

          Show
          Jesse Yates added a comment - Linking to jira for getting an individual table. The original pain around this was in that constraints only make sense for a single table, so we could just dynamically tie it to a table. By dynamically, I was thinking either via opening the Table class back up to add methods or doing a dynamic lookup of all classes in a table-extensions folder and including them in the Table class.

            People

            • Assignee:
              Unassigned
              Reporter:
              Jesse Yates
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Development