[jira] [Updated] (HBASE-5767) Add the hbase shell table_att for any attribute

2012-04-11 Thread ShiXing (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-5767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ShiXing updated HBASE-5767:
---

Attachment: HBASE-5767-V2.patch

add unit test

> Add the hbase shell table_att for any attribute
> ---
>
> Key: HBASE-5767
> URL: https://issues.apache.org/jira/browse/HBASE-5767
> Project: HBase
>  Issue Type: Improvement
>  Components: shell
>Reporter: Xing Shi
>Priority: Minor
> Attachments: HBASE-5767-V2.patch, HBASE-5767.patch
>
>
> Now the HTableDescriptor supports setValue(String key, String value) method, 
> but the hbase shell not support it.
> May be like this:
> {quota}
> hbase(main):003:0> alter 'test', METHOD=>'table_att', 'key1'=>'value1'
> Updating all regions with the new schema...
> 1/1 regions updated.
> Done.
> 0 row(s) in 1.0820 seconds
> hbase(main):005:0> describe 'test'
> DESCRIPTION   
> ENABLED  
>  {NAME => 'test', key1 => 'value1', FAMILIES => [{NAME => 'f1', BLOOMFILTER 
> => 'NONE', RE true 
>  PLICATION_SCOPE => '0', VERSIONS => '3', COMPRESSION => 'NONE', MIN_VERSIONS 
> => '0', TTL  
>   => '2147483647', BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 
> 'true'}]} 
> 1 row(s) in 0.0300 seconds
> hbase(main):007:0> alter 'test', METHOD=>'table_att_unset', NAME=>'key1'
> Updating all regions with the new schema...
> 1/1 regions updated.
> Done.
> 0 row(s) in 1.0860 seconds
> hbase(main):008:0> describe 'test'
> DESCRIPTION   
> ENABLED  
>  {NAME => 'test', FAMILIES => [{NAME => 'f1', BLOOMFILTER => 'NONE', 
> REPLICATION_SCOPE => false
>   '0', VERSIONS => '3', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL => 
> '2147483647',   
>  BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}]}  
>  
> 1 row(s) in 0.0280 seconds
> {quota}

--
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




[jira] [Updated] (HBASE-5767) Add the hbase shell table_att for any attribute

2012-04-11 Thread ShiXing (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-5767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ShiXing updated HBASE-5767:
---

Attachment: HBASE-5767.patch

att

> Add the hbase shell table_att for any attribute
> ---
>
> Key: HBASE-5767
> URL: https://issues.apache.org/jira/browse/HBASE-5767
> Project: HBase
>  Issue Type: Improvement
>  Components: shell
>Reporter: Xing Shi
>Priority: Minor
> Attachments: HBASE-5767.patch
>
>
> Now the HTableDescriptor supports setValue(String key, String value) method, 
> but the hbase shell not support it.
> May be like this:
> {quota}
> hbase(main):003:0> alter 'test', METHOD=>'table_att', 'key1'=>'value1'
> Updating all regions with the new schema...
> 1/1 regions updated.
> Done.
> 0 row(s) in 1.0820 seconds
> hbase(main):005:0> describe 'test'
> DESCRIPTION   
> ENABLED  
>  {NAME => 'test', key1 => 'value1', FAMILIES => [{NAME => 'f1', BLOOMFILTER 
> => 'NONE', RE true 
>  PLICATION_SCOPE => '0', VERSIONS => '3', COMPRESSION => 'NONE', MIN_VERSIONS 
> => '0', TTL  
>   => '2147483647', BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 
> 'true'}]} 
> 1 row(s) in 0.0300 seconds
> hbase(main):007:0> alter 'test', METHOD=>'table_att_unset', NAME=>'key1'
> Updating all regions with the new schema...
> 1/1 regions updated.
> Done.
> 0 row(s) in 1.0860 seconds
> hbase(main):008:0> describe 'test'
> DESCRIPTION   
> ENABLED  
>  {NAME => 'test', FAMILIES => [{NAME => 'f1', BLOOMFILTER => 'NONE', 
> REPLICATION_SCOPE => false
>   '0', VERSIONS => '3', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL => 
> '2147483647',   
>  BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCACHE => 'true'}]}  
>  
> 1 row(s) in 0.0280 seconds
> {quota}

--
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




[jira] [Updated] (HBASE-5723) Simple Design of Secondary Index

2012-04-05 Thread ShiXing (Updated) (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-5723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ShiXing updated HBASE-5723:
---

Attachment: Simple Design of HBase SecondaryIndex.pdf

> Simple Design of Secondary Index
> 
>
> Key: HBASE-5723
> URL: https://issues.apache.org/jira/browse/HBASE-5723
> Project: HBase
>  Issue Type: New Feature
>  Components: coprocessors
>Reporter: ShiXing
>Priority: Minor
> Attachments: Simple Design of HBase SecondaryIndex.pdf
>
>
> Use coprocessor to create index. And primary tables' compaction to purge the 
> stale data. 
> Attach file is the Design of the Seconday Index.

--
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