You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Edward Yoon (JIRA)" <ji...@apache.org> on 2008/02/05 05:01:15 UTC

[jira] Updated: (HBASE-22) HQL exceptions when no cluster to connect to

     [ https://issues.apache.org/jira/browse/HBASE-22?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HBASE-22:
-----------------------------

    Description: 
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}

  was:
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}

        Summary: HQL exceptions when no cluster to connect to  (was: hql exceptions when no cluster to connect to)

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