hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Yoon (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-22) HQL exceptions when no cluster to connect to
Date Thu, 28 Feb 2008 01:06:51 GMT

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

Edward Yoon commented on HBASE-22:
----------------------------------

stack, clarify the exception handler and return messages of hql.

> 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
>    Affects Versions: 0.1.0
>            Reporter: stack
>            Assignee: stack
>            Priority: Trivial
>             Fix For: 0.2.0
>
>         Attachments: 22.patch, 22_v02.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
<java.net.ConnectException: Connection refused>. 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.


Mime
View raw message