Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2D62498DB for ; Thu, 12 Apr 2012 16:01:40 +0000 (UTC) Received: (qmail 38819 invoked by uid 500); 12 Apr 2012 16:01:40 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 38777 invoked by uid 500); 12 Apr 2012 16:01:40 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 38765 invoked by uid 99); 12 Apr 2012 16:01:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2012 16:01:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2012 16:01:38 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AC0493671B8 for ; Thu, 12 Apr 2012 16:01:18 +0000 (UTC) Date: Thu, 12 Apr 2012 16:01:18 +0000 (UTC) From: "Ted Yu (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <106458740.17634.1334246478715.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1643443730.12254.1334151196287.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5767) Add the hbase shell table_att for any attribute MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-5767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13252515#comment-13252515 ] Ted Yu commented on HBASE-5767: ------------------------------- In order for HBASE-5335 to be backported to 0.92, you need to provide backport for 0.94 first :-) Remember to take into account the two required JIRAs, including HBASE-5359. > 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