|
stack (JIRA) |
at Sep 26, 2008 at 6:02 am
|
⇧ |
| |
[
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-903Project: 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.