You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "sishen (JIRA)" <ji...@apache.org> on 2008/09/22 22:45:44 UTC

[jira] Updated: (HBASE-894) [shell] Should be able to copy-paste table description to create new table

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

sishen updated HBASE-894:
-------------------------

    Attachment: 896.trunk.create_table.patch

The patch should work but it contains some patches to HBASE-890.

However, not much changes there.

> [shell] Should be able to copy-paste table description to create new table
> --------------------------------------------------------------------------
>
>                 Key: HBASE-894
>                 URL: https://issues.apache.org/jira/browse/HBASE-894
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>         Attachments: 896.trunk.create_table.patch
>
>
> I want to create a new table based off the description of an old.  You'd think I could just copy the description of the old in the shell but it doesn't work.  Our 'describe' emission cannot be used as input on a subsequent create.
> Below I copied the output that describes one table and tried to create  a new table named 'x' with it:
> {code}
> HBase Shell; enter 'help<RETURN>' for list of supported commands.                                                                                                                                                                                                                                                           Version: 0.2.1, r49040, Mon Sep  8 11:29:45 PDT 2008hbase(main):001:0> create 'x', {NAME => 'alternate_title', BLOOMFILTER => 'false', VERSIONS => '2147483647', COMPRESSION => 'NONE', LENGTH => '2147483647', TTL => '-1', IN_MEMORY => 'false', BLOCKCACHE => 'false'}, {NAME => 'anchor', BLOOMFILTER => 'false', VERSIONS => '2147483647', COMPRESSION => 'NONE', LENGTH => '2147483647', TTL => '-1', IN_MEMORY => 'false', BLOCKCACHE => 'false'}, {NAME => 'inlink', BLOOMFILTER => 'false', VERSIONS => '2147483647', COMPRESSION => 'NONE', LENGTH => '2147483647', TTL => '-1', IN_MEMORY => 'false', BLOCKCACHE => 'false'}, {NAME => 'alternate_url', BLOOMFILTER => 'false', VERSIONS => '2147483647', COMPRESSION => 'NONE', LENGTH => '2147483647', TTL => '-1', IN_MEMORY => 'false', BLOCKCACHE => 'false'}, {NAME => 'page', BLOOMFILTER => 'false', VERSIONS => '2147483647', COMPRESSION => 'NONE', LENGTH => '2147483647', TTL => '-1', IN_MEMORY => 'false', BLOCKCACHE => 'false'}, {NAME => 'misc', BLOOMFILTER => 'false', VERSIONS => '2147483647', COMPRESSION => 'NONE', LENGTH => '2147483647', TTL => '-1', IN_MEMORY => 'false', BLOCKCACHE => 'false'}NameError: no constructor with arguments matching [class [B, class java.lang.String, class org.apache.hadoop.hbase.HColumnDescriptor$CompressionType, class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String] on object JavaUtilities
>         from file:/p/share/hbase/lib/jruby-complete-1.1.2.jar!/builtin/javasupport/proxy/concrete.rb:23:in `__jcreate!'
>         from file:/p/share/hbase/lib/jruby-complete-1.1.2.jar!/builtin/javasupport/proxy/concrete.rb:23:in `initialize'
>         from file:/p/share/hbase/lib/jruby-complete-1.1.2.jar!/builtin/javasupport/proxy/concrete.rb:6:in `new'
>         from file:/p/share/hbase/lib/jruby-complete-1.1.2.jar!/builtin/javasupport/proxy/concrete.rb:6:in `new'
>         from /p/share/hbase/bin/../bin/HBase.rb:161:in `hcd'
>         from /p/share/hbase/bin/../bin/HBase.rb:117:in `create'
>         from /p/share/hbase/bin/../bin/HBase.rb:111:in `each'
>         from /p/share/hbase/bin/../bin/HBase.rb:111:in `create'
>         from /p/share/hbase/bin/../bin/hirb.rb:228:in `create'
>         from (hbase):2:in `binding'
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.