hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sishen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-894) [shell] Should be able to copy-paste table description to create new table
Date Mon, 22 Sep 2008 20:57:46 GMT

    [ https://issues.apache.org/jira/browse/HBASE-894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633493#action_12633493
] 

sishen commented on HBASE-894:
------------------------------

No. 

HBase-890 is fix the issue about alter table which enable user to add/delete/edit column families
for a table. So it has some changes to HBase.rb.

Also, this issue also modified the file HBase.rb.

So the problem is that my patch including these two parts due to my local file.

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


Mime
View raw message