Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-2475

HBase Atlas import utility : importing using -t default:table fails when namespace is default

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0
    • atlas-intg
    • None

    Description

      Running following scripts work :

      ./import-hbase.sh -t ns1:table5
      ./import-hbase.sh -t table2

      But following import script specifying default namespace doesn't work :

      ./import-hbase.sh -t default:table2

      and throws following exception :

      Exception in thread "main" org.apache.atlas.hook.AtlasHookException: ImportHBaseEntities failed.
      	at org.apache.atlas.hbase.util.ImportHBaseEntities.main(ImportHBaseEntities.java:57)
      Caused by: java.lang.NullPointerException
      	at org.apache.atlas.hbase.util.ImportHBaseEntities.importTable(ImportHBaseEntities.java:115)
      	at org.apache.atlas.hbase.util.ImportHBaseEntities.execute(ImportHBaseEntities.java:88)
      	at org.apache.atlas.hbase.util.ImportHBaseEntities.main(ImportHBaseEntities.java:54)
      Failed to import HBase Data Model!!!
      

      In HBase shell , it is possible to create table in default namespace by specifying the default namespace explicitly :
      > create 'default:table2,'cf1'

      so ,expectation is that importing by explicitly specifying default namespace also should work.

      CC : rmani

      Attachments

        Issue Links

          Activity

            People

              rmani Ramesh Mani
              sharmadhas Sharmadha S
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: