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

I can't read/write a Hbase table by spark-hbase connector when the table is in non-default namespace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 1.0.0
    • None
    • hbase-connectors
    • None

    Description

      I found I can't read/write a Hbase table by spark-hbase connector when the hbase table is  in a non-default namespace.

       

      Because when spark opens a table(related to a hbase table), it creates a HBaseRelation instance first, and initializes a HBaseTableCatalog from the table definition saved in spark catalog. But in the function 'convert' the field 'tableCatalog' is constructed from a string template, in which the namespace is set as 'default', leading to a wrong namespace. This namespace is not  the one defined when user created the table before.

       

      Pls have a look:

      Attachments

        1. image-2021-12-01-20-53-05-405.png
          228 kB
          mengdou
        2. image-2021-12-01-20-52-11-664.png
          1.53 MB
          mengdou
        3. image-2021-11-26-17-32-53-507.png
          359 kB
          mengdou

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mengdou mengdou
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: