[jira] [Commented] (HBASE-4879) Add Constraint support to shell
[ https://issues.apache.org/jira/browse/HBASE-4879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14498347#comment-14498347 ] Jesse Yates commented on HBASE-4879: Hmm, I'm not sure when they got put under the private annotation. Indeed was meant to be something used by users, not just limited to internal use (of which there is none, AFAIK). bq. Should this not be accessible, at least LimitedPrivate? But is it complete enough to be used? Yes, and yes. The tests are still running and passing (e.g. TestConstraint.java), so constraints at least work. So it can be used, with some caveats. It has two main issues: (1) you still have to deploy a jar to the server that contains the constraint (ala coprocessors or filters), and (2) its not useful for many cases because as the docs say: bq. Further, {@link Constraint Constraints} should probably not be used to enforce cross-table references as it will cause tremendous write slowdowns, but it is possible. Obviously, there is no way around the second one, and the interface actually goes out of its way to not allow you access to an HTable, to prevent this kind of thing. However, the flip side is that you have very limited utility. It becomes useful for toy examples, but in real life its really limited to use. I don't know of any users actively using constraints (though there was some interest when they first came out). Things that could be added to increase utility are: a limited HTable interface that only accesses the local region and just for reads; a basic set of constraint processors that uses the table properties to configure certain constraints (e.g. all values must remain 0); easy shell support. Your call if you want to include it - they can be useful, but no one has actually used them :) I'm happy to write code/do reviews/commit improvements, if people actually want them, but until there is an actual user who wants them, I'm reluctant to put any more work into it. Add Constraint support to shell --- Key: HBASE-4879 URL: https://issues.apache.org/jira/browse/HBASE-4879 Project: HBase Issue Type: Improvement Affects Versions: 0.94.0 Reporter: Jesse Yates 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 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HBASE-4879) Add Constraint support to shell
[ https://issues.apache.org/jira/browse/HBASE-4879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14495783#comment-14495783 ] Lars George commented on HBASE-4879: Hey [~jesse_yates], this came from me asking internally. I was wondering what the status is here. The idea seems interesting to developers, yet it is all in the server package and flagged Private. Should this not be accessible, at least LimitedPrivate? But is it complete enough to be used? I understand that the shell stuff is not complete, I found the JIRA. But that also discourages to use it at all. As for context, I am working on the 2nd ed of my book and was wondering if I should include this or not. Please let us know. Add Constraint support to shell --- Key: HBASE-4879 URL: https://issues.apache.org/jira/browse/HBASE-4879 Project: HBase Issue Type: Improvement Affects Versions: 0.94.0 Reporter: Jesse Yates 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 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HBASE-4879) Add Constraint support to shell
[ https://issues.apache.org/jira/browse/HBASE-4879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14494604#comment-14494604 ] stack commented on HBASE-4879: -- [~jesse_yates] Can you add a release note for how and when to use this feature (folks have been wondering!). Thanks boss. Add Constraint support to shell --- Key: HBASE-4879 URL: https://issues.apache.org/jira/browse/HBASE-4879 Project: HBase Issue Type: Improvement Affects Versions: 0.94.0 Reporter: Jesse Yates 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 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HBASE-4879) Add Constraint support to shell
[ https://issues.apache.org/jira/browse/HBASE-4879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14494809#comment-14494809 ] Jesse Yates commented on HBASE-4879: [~stack], you mean for the constraint stuff in general? The shell support never got finished... Add Constraint support to shell --- Key: HBASE-4879 URL: https://issues.apache.org/jira/browse/HBASE-4879 Project: HBase Issue Type: Improvement Affects Versions: 0.94.0 Reporter: Jesse Yates 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 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (HBASE-4879) Add Constraint support to shell
[ https://issues.apache.org/jira/browse/HBASE-4879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13158708#comment-13158708 ] Jesse Yates commented on HBASE-4879: As a follow-on ticket to 4605, this means adding the support for altering a table more easily. Specifically, this means doing something like: {code} alter(table).addCoprocessor(…) alter(table).addColumnFamily(…) … {code} and then for constraints, something like: {code} alter(table).addConstraint(…) alter(table).enableConstraints … {code} 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. Add Constraint support to shell --- Key: HBASE-4879 URL: https://issues.apache.org/jira/browse/HBASE-4879 Project: HBase Issue Type: Improvement Affects Versions: 0.94.0 Reporter: Jesse Yates 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 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira