Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-587

Impala should handle malformatted HBase table mapping gracefully

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 1.0.1
    • Impala 1.2
    • None
    • None

    Description

      If the column mapping does not match the schema, Impala does not handle it gracefully. In this example:

      1) $hbase shell
      hbase(main):002:0>create 'testtable','colfam1'
      2) In Hive Shell
      CREATE EXTERNAL TABLE hbase_table_1(key string, value string)
      STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
      WITH SERDEPROPERTIES ("hbase.columns.mapping" = "colfam1:val")
      TBLPROPERTIES("hbase.table.name" = "testtable");

      Impala will fail to load the table with an error:

      CAUSED BY: TableLoadingException: Failed to load metadata for HBase table:

      hbase_hive_table_1
      CAUSED BY: IndexOutOfBoundException: Index: 1, Size: 1

      Impala should report a proper error instead. Also, Hive can query the table.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            lskuff Lenni Kuff
            alan@cloudera.com Alan Choi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment