Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AE89E9A56 for ; Tue, 31 Jan 2012 06:52:12 +0000 (UTC) Received: (qmail 90669 invoked by uid 500); 31 Jan 2012 06:52:10 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 90443 invoked by uid 500); 31 Jan 2012 06:51:57 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 90434 invoked by uid 99); 31 Jan 2012 06:51:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2012 06:51:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stutiawasthi@hcl.com designates 203.105.185.23 as permitted sender) Received: from [203.105.185.23] (HELO gws05.hcl.com) (203.105.185.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2012 06:51:48 +0000 Received: from NDA-HCLIN-HT01.CORP.HCL.IN (10.248.64.35) by NDA-HCLIN-EDGE3.hcl.in (10.248.64.140) with Microsoft SMTP Server id 8.2.254.0; Tue, 31 Jan 2012 12:21:17 +0530 Received: from NDA-HCLC-HT01.HCLC.CORP.HCL.IN (10.33.64.155) by NDA-HCLIN-HT01.CORP.HCL.IN (10.248.64.35) with Microsoft SMTP Server (TLS) id 8.2.254.0; Tue, 31 Jan 2012 12:21:00 +0530 Received: from NDA-HCLC-EVS04.HCLC.CORP.HCL.IN ([fe80::b51d:8c43:53ff:460c]) by NDA-HCLC-HT01.HCLC.CORP.HCL.IN ([::1]) with mapi; Tue, 31 Jan 2012 12:20:59 +0530 From: Stuti Awasthi To: "user@hbase.apache.org" Date: Tue, 31 Jan 2012 12:20:58 +0530 Subject: RE: Create hbase table using script Thread-Topic: Create hbase table using script Thread-Index: AczbXgbvqqjwJPC4QkWJvCpj38P6EwEhn8Vw Message-ID: <7D9AF4B98807C54EBADEA75DF6D5ACB70158530567@NDA-HCLC-EVS04.HCLC.CORP.HCL.IN> References: <4F1FF757.7040701@uha.fr> In-Reply-To: <4F1FF757.7040701@uha.fr> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Thanks Frederic, Sorry as I was out of town I was not able to check what you suggested. I wi= ll try and come up again if I faces any issues.=20 Thanks -----Original Message----- From: Fr=E9d=E9ric Fondement [mailto:frederic.fondement@uha.fr]=20 Sent: Wednesday, January 25, 2012 6:07 PM To: user@hbase.apache.org Subject: Re: Create hbase table using script Sorry, I sent last mail too soon: you also need to change your script to: echo "create '$1','cf1'" piping (i.e. running created.sh test1 | hbase shell) should also support mu= ltiple lines echoed by created.sh Le 25/01/12 11:01, Christian Sch=E4fer a =E9crit : > Tried what you did. > > There is furthermore printed that seems to me that hbase shell may not=20 > have the additional arguments (created.sh test1): > > ArgumentError: wrong number of arguments (2 for 0) > start at /usr/lib/hbase/bin/../bin/hirb.rb:169 > (root) at /usr/lib/hbase/bin/../bin/hirb.rb:183 > > Where did you read that shellscript could be passed to the hbase shell co= mmand? > Von: Stuti Awasthi > An: > "hbase-user@hadoop.apache.org" > Gesendet: 8:34 Mittwoch, 25.Januar 2012 > Betreff: Create hbase table using script > > Hi all, > > I am trying to create hbase tables using shell script. The table name wil= l come as argument to the script like: > > $HBASE_HOME/bin/hbase shell created.sh test1 > > Here test1 is the table name. When in my script I want to access as norma= l argument I get the error: > > Script: > Name=3D$1 > create "$Name",'cf1' > > ERROR: > java.lang.IllegalArgumentException: Illegal character<36> at 0. > User-space table names can only contain 'word characters': i.e. > [a-zA-Z_0-9-.]: $Name > > How can I fix this using script > ? > Thnx > > ________________________________ > ::DISCLAIMER:: > ---------------------------------------------------------------------- > ------------------------------------------------- > > The contents of this e-mail and any attachment(s) are confidential and in= tended for the named recipient(s) only. > It shall not attach any liability on the originator or HCL or its=20 > affiliates. Any views or opinions presented in this email are solely thos= e of the author and may not necessarily reflect the opinions of HCL or its = affiliates. > Any form of reproduction, dissemination, copying, disclosure,=20 > modification, distribution and / or publication of this message=20 > without the prior written consent of the author of this e-mail is=20 > strictly prohibited. If you have received this email in error please dele= te it and notify the sender immediately. Before opening any mail and attach= ments please check them for viruses and > defect. > > ---------------------------------------------------------------------- > ------------------------------------------------- > > > =09