Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@locus.apache.org Received: (qmail 27821 invoked from network); 11 Feb 2008 00:33:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2008 00:33:29 -0000 Received: (qmail 10898 invoked by uid 500); 11 Feb 2008 00:33:23 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 10885 invoked by uid 500); 11 Feb 2008 00:33:23 -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 10876 invoked by uid 99); 11 Feb 2008 00:33:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Feb 2008 16:33:23 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 00:33:01 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D33E4714066 for ; Sun, 10 Feb 2008 16:33:08 -0800 (PST) Message-ID: <11550442.1202689988855.JavaMail.jira@brutus> Date: Sun, 10 Feb 2008 16:33:08 -0800 (PST) From: "Edward Yoon (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Updated: (HBASE-22) HQL exceptions when no cluster to connect to MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-22?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Edward Yoon updated HBASE-22: ----------------------------- Attachment: 22.patch Here's a fix patch. > HQL exceptions when no cluster to connect to > -------------------------------------------- > > Key: HBASE-22 > URL: https://issues.apache.org/jira/browse/HBASE-22 > Project: Hadoop HBase > Issue Type: Bug > Components: hql > Reporter: stack > Assignee: Edward Yoon > Priority: Trivial > Attachments: 22.patch > > > Here's a couple of exceptions thrown by hql that should be fixed as we go: > {code} > 08/01/24 10:39:42 INFO hbase.HConnectionManager$TableServers: Attempt 3 of 5 failed with . Retrying after sleep of 10000 > 08/01/24 10:39:52 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 1 time(s).08/01/24 10:39:53 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 2 time(s). > 08/01/24 10:39:54 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 3 time(s).08/01/24 10:39:55 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 4 time(s). > 08/01/24 10:39:56 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 5 time(s).08/01/24 10:39:57 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 6 time(s). > 08/01/24 10:39:58 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 7 time(s).08/01/24 10:39:59 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 8 time(s). > 08/01/24 10:40:00 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 9 time(s). > 08/01/24 10:40:02 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:60000. Already tried 10 time(s). > 08/01/24 10:40:03 WARN hbase.HConnectionManager$TableServers: Testing for table existence threw exception > org.apache.hadoop.hbase.MasterNotRunningException > at org.apache.hadoop.hbase.HConnectionManager$TableServers.getMaster(HConnectionManager.java:202) > at org.apache.hadoop.hbase.HConnectionManager$TableServers.locateRootRegion(HConnectionManager.java:691) > at org.apache.hadoop.hbase.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:329) > at org.apache.hadoop.hbase.HConnectionManager$TableServers.relocateRegion(HConnectionManager.java:311) > at org.apache.hadoop.hbase.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:476) > at org.apache.hadoop.hbase.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:339) > at org.apache.hadoop.hbase.HConnectionManager$TableServers.relocateRegion(HConnectionManager.java:311) > at org.apache.hadoop.hbase.HConnectionManager$TableServers.listTables(HConnectionManager.java:291) > at org.apache.hadoop.hbase.HConnectionManager$TableServers.tableExists(HConnectionManager.java:227) > at org.apache.hadoop.hbase.hql.CreateCommand.execute(CreateCommand.java:49) > at org.apache.hadoop.hbase.hql.HQLClient.executeQuery(HQLClient.java:50) > at org.apache.hadoop.hbase.Shell.main(Shell.java:114) > Exception in thread "main" java.lang.NullPointerException > at org.apache.hadoop.hbase.hql.BasicCommand.extractErrMsg(BasicCommand.java:62) > at org.apache.hadoop.hbase.hql.BasicCommand.extractErrMsg(BasicCommand.java:68) > at org.apache.hadoop.hbase.hql.CreateCommand.execute(CreateCommand.java:67) > at org.apache.hadoop.hbase.hql.HQLClient.executeQuery(HQLClient.java:50) > at org.apache.hadoop.hbase.Shell.main(Shell.java:114) > {code} > or > {code} > Hbase> create table log(uname, uid); > Creating table... Please wait. > Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1 > at java.lang.String.substring(String.java:1938) > at org.apache.hadoop.hbase.shell.BasicCommand.extractErrMsg(BasicCommand.java:60) > at org.apache.hadoop.hbase.shell.BasicCommand.extractErrMsg(BasicCommand.java:64) > at org.apache.hadoop.hbase.shell.CreateCommand.execute(CreateCommand.java:61) > at org.apache.hadoop.hbase.Shell.main(Shell.java:96) > [hadoop@latewhatgrow-lx bin]$ > {code} > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.