Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-22

HQL exceptions when no cluster to connect to

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • 0.1.0
    • 0.2.0
    • util
    • None

    Description

      Here's a couple of exceptions thrown by hql that should be fixed as we go:

      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)
      

      or

      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]$ 
      
      
      

      Attachments

        1. 22.patch
          7 kB
          Edward J. Yoon
        2. 22_v02.patch
          32 kB
          Edward J. Yoon

        Activity

          People

            stack Michael Stack
            stack Michael Stack
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: