[hbase] hql exceptions when no cluster to connect to
----------------------------------------------------
Key: HADOOP-2701
URL: https://issues.apache.org/jira/browse/HADOOP-2701
Project: Hadoop Core
Issue Type: Bug
Components: contrib/hbase
Reporter: stack
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)
[EMAIL PROTECTED] bin]$
{code}
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.