Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@locus.apache.org Received: (qmail 17169 invoked from network); 26 Sep 2008 06:02:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Sep 2008 06:02:37 -0000 Received: (qmail 32796 invoked by uid 500); 26 Sep 2008 06:02:34 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 32785 invoked by uid 500); 26 Sep 2008 06:02:34 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 32774 invoked by uid 99); 26 Sep 2008 06:02:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Sep 2008 23:02:34 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Sep 2008 06:01:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1DD1F234C1F3 for ; Thu, 25 Sep 2008 23:01:46 -0700 (PDT) Message-ID: <131952855.1222408906107.JavaMail.jira@brutus> Date: Thu, 25 Sep 2008 23:01:46 -0700 (PDT) From: "stack (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Commented: (HBASE-903) [shell] Can't set table descriptor attributes when I alter a table In-Reply-To: <1436124219.1222408304272.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12634758#action_12634758 ] stack commented on HBASE-903: ----------------------------- For now, here is a workaround: {code} hbase(main):019:0> disable 'TestTable' # HBaseAdmin has already been imported into the shell during startup and '@configuration' is the shells HBaseConfiguration instance. hbase(main):010:0> admin = HBaseAdmin.new(@configuration) # In my instance, only one table so can do index '0' of returned list hbase(main):011:0> htd = admin.listTables()[0] hbase(main):017:0> htd.setMaxFileSize(67108864) hbase(main):018:0> admin.modifyTableMeta(Bytes.toBytes('TestTable'), htd) hbase(main):019:0> enable 'TestTable' {code} > [shell] Can't set table descriptor attributes when I alter a table > ------------------------------------------------------------------ > > Key: HBASE-903 > URL: https://issues.apache.org/jira/browse/HBASE-903 > Project: Hadoop HBase > Issue Type: Bug > Reporter: stack > > I wanted to set the compaction filesize attribute but no good: > {code} > hbase(main):005:0> alter 'TestTable', {MAX_FILESIZE => 67108864} > TypeError: can't convert Hash into String > from /Users/stack/Documents/checkouts/hbase/trunk/bin/../bin/HBase.rb:138:in `hcd' > from /Users/stack/Documents/checkouts/hbase/trunk/bin/../bin/HBase.rb:138:in `alter' > from /Users/stack/Documents/checkouts/hbase/trunk/bin/../bin/hirb.rb:239:in `alter' > from (hbase):6:in `binding' > hbase(main):006:0> alter 'TestTable', {MAX_FILESIZE => 67108864} > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.