Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@locus.apache.org Received: (qmail 74288 invoked from network); 13 Dec 2008 22:13:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2008 22:13:09 -0000 Received: (qmail 69495 invoked by uid 500); 13 Dec 2008 22:13:21 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 69471 invoked by uid 500); 13 Dec 2008 22:13:21 -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 69432 invoked by uid 99); 13 Dec 2008 22:13:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Dec 2008 14:13:21 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED 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; Sat, 13 Dec 2008 22:13:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 62061234C3C6 for ; Sat, 13 Dec 2008 14:12:44 -0800 (PST) Message-ID: <1833930037.1229206364400.JavaMail.jira@brutus> Date: Sat, 13 Dec 2008 14:12:44 -0800 (PST) From: "stack (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Assigned: (HBASE-894) [shell] Should be able to copy-paste table description to create new table In-Reply-To: <579354846.1222103564167.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-894?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] stack reassigned HBASE-894: --------------------------- Assignee: sishen > [shell] Should be able to copy-paste table description to create new tabl= e > -------------------------------------------------------------------------= - > > Key: HBASE-894 > URL: https://issues.apache.org/jira/browse/HBASE-894 > Project: Hadoop HBase > Issue Type: Bug > Reporter: stack > Assignee: sishen > Fix For: 0.19.0 > > Attachments: 896.trunk.create_table.patch, 896.trunk.create_table= _v2.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 does= n'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' for list of supported commands. = = = = Version: 0.2.1, r49040, Mon Sep 8 11:29:45 PDT 2008hbase= (main):001:0> create 'x', {NAME =3D> 'alternate_title', BLOOMFILTER =3D> 'f= alse', VERSIONS =3D> '2147483647', COMPRESSION =3D> 'NONE', LENGTH =3D> '21= 47483647', TTL =3D> '-1', IN_MEMORY =3D> 'false', BLOCKCACHE =3D> 'false'},= {NAME =3D> 'anchor', BLOOMFILTER =3D> 'false', VERSIONS =3D> '2147483647',= COMPRESSION =3D> 'NONE', LENGTH =3D> '2147483647', TTL =3D> '-1', IN_MEMOR= Y =3D> 'false', BLOCKCACHE =3D> 'false'}, {NAME =3D> 'inlink', BLOOMFILTER = =3D> 'false', VERSIONS =3D> '2147483647', COMPRESSION =3D> 'NONE', LENGTH = =3D> '2147483647', TTL =3D> '-1', IN_MEMORY =3D> 'false', BLOCKCACHE =3D> '= false'}, {NAME =3D> 'alternate_url', BLOOMFILTER =3D> 'false', VERSIONS =3D= > '2147483647', COMPRESSION =3D> 'NONE', LENGTH =3D> '2147483647', TTL =3D>= '-1', IN_MEMORY =3D> 'false', BLOCKCACHE =3D> 'false'}, {NAME =3D> 'page',= BLOOMFILTER =3D> 'false', VERSIONS =3D> '2147483647', COMPRESSION =3D> 'NO= NE', LENGTH =3D> '2147483647', TTL =3D> '-1', IN_MEMORY =3D> 'false', BLOCK= CACHE =3D> 'false'}, {NAME =3D> 'misc', BLOOMFILTER =3D> 'false', VERSIONS = =3D> '2147483647', COMPRESSION =3D> 'NONE', LENGTH =3D> '2147483647', TTL = =3D> '-1', IN_MEMORY =3D> 'false', BLOCKCACHE =3D> 'false'}NameError: no co= nstructor 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.Str= ing, class java.lang.String] on object JavaUtilities > from file:/p/share/hbase/lib/jruby-complete-1.1.2.jar!/builtin/ja= vasupport/proxy/concrete.rb:23:in `__jcreate!' > from file:/p/share/hbase/lib/jruby-complete-1.1.2.jar!/builtin/ja= vasupport/proxy/concrete.rb:23:in `initialize' > from file:/p/share/hbase/lib/jruby-complete-1.1.2.jar!/builtin/ja= vasupport/proxy/concrete.rb:6:in `new' > from file:/p/share/hbase/lib/jruby-complete-1.1.2.jar!/builtin/ja= vasupport/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} --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.