FAQ
[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.

Search Discussions

  • 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-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.
  • stack (JIRA) at Sep 27, 2008 at 6:20 pm
    [ https://issues.apache.org/jira/browse/HBASE-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635174#action_12635174 ]

    stack commented on HBASE-903:
    -----------------------------

    When a fix, confirm can set cache flush size too from shell -- MEMCACHE_FLUSHSIZE -- and that can set table READONLY.
    [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.
  • Billy Pearson (JIRA) at Jan 24, 2009 at 11:48 pm
    [ https://issues.apache.org/jira/browse/HBASE-903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Billy Pearson updated HBASE-903:
    --------------------------------

    Fix Version/s: 0.20.0

    Updates to add to roadmap for 0.20.0.
    We should at lease support this in shell for users that do not use java to have access to these features
    Thrift and rest support can come down the road in HBASE-800
    [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
    Fix For: 0.20.0


    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.
  • Jean-Daniel Cryans (JIRA) at Jan 28, 2009 at 3:36 pm
    [ https://issues.apache.org/jira/browse/HBASE-903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Jean-Daniel Cryans updated HBASE-903:
    -------------------------------------

    Attachment: hbase-903.patch

    Patch that changes "alter" so it accepts something like :

    {code}
    alter 't1', {METHOD => 'table', MAX_FILESIZE => '10485760', MEMCACHE_FLUSHSIZE => '1048576', READONLY => 'true'}
    {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
    Fix For: 0.20.0

    Attachments: hbase-903.patch


    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.
  • stack (JIRA) at Jan 28, 2009 at 11:17 pm
    [ https://issues.apache.org/jira/browse/HBASE-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12668217#action_12668217 ]

    stack commented on HBASE-903:
    -----------------------------

    +1 I tested it and it works. Nice fix for shell functonality. Only think I'd change, though I would not put this in the way of the commit, is the method name. 'table' is super generic. 'table_attributes' seems a bit long. I'll live if 'table' goes in but maybe you have a better name j-d?
    [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
    Fix For: 0.20.0

    Attachments: hbase-903.patch


    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.
  • Jean-Daniel Cryans (JIRA) at Jan 29, 2009 at 4:55 pm
    [ https://issues.apache.org/jira/browse/HBASE-903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12668516#action_12668516 ]

    Jean-Daniel Cryans commented on HBASE-903:
    ------------------------------------------

    Thanks for the review and trying my patch, I changed "table" to "table_att". I committed this to trunk but I think it fixes something important so I would put it in 0.19 branch unless someone has an objection.
    [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
    Fix For: 0.20.0

    Attachments: hbase-903.patch


    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.
  • Jean-Daniel Cryans (JIRA) at Jan 29, 2009 at 4:55 pm
    [ https://issues.apache.org/jira/browse/HBASE-903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Jean-Daniel Cryans reassigned HBASE-903:
    ----------------------------------------

    Assignee: Jean-Daniel Cryans
    [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
    Assignee: Jean-Daniel Cryans
    Fix For: 0.20.0

    Attachments: hbase-903.patch


    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.
  • Jean-Daniel Cryans (JIRA) at Jan 31, 2009 at 9:28 pm
    [ https://issues.apache.org/jira/browse/HBASE-903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Jean-Daniel Cryans resolved HBASE-903.
    --------------------------------------

    Resolution: Fixed
    Fix Version/s: 0.19.1
    Hadoop Flags: [Reviewed]

    Committed to 0.19 branch.
    [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
    Assignee: Jean-Daniel Cryans
    Fix For: 0.19.1, 0.20.0

    Attachments: hbase-903.patch


    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieshbase, hadoop
postedSep 26, '08 at 5:52a
activeJan 31, '09 at 9:28p
posts9
users1
websitehbase.apache.org

1 user in discussion

Jean-Daniel Cryans (JIRA): 9 posts

People

Translate

site design / logo © 2022 Grokbase