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

CTAS tables creation throws exceptions in Atlas ,but the tables are imported and lineage graphs are also rendered.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • Atlas (commit id : 98769871e56d9a97792e2dba52345e876908ac63 )
      HBase , External Kafka, Solr

    Description

      Atlas is populated with "n" tables and then CTAS tables are created from those"n" tables.

      Atlas throws the following exceptions :

      2016-05-19 02:59:39,362 ERROR - [NotificationHookConsumer thread-0:] ~ Unable to persist entity instance (EntityResource:148)
      java.lang.NullPointerException
      at org.apache.atlas.web.resources.EntityResource.submit(EntityResource.java:124)
      at org.apache.atlas.LocalAtlasClient$1.invoke(LocalAtlasClient.java:82)
      at org.apache.atlas.LocalAtlasClient$EntityOperation.run(LocalAtlasClient.java:118)
      at org.apache.atlas.LocalAtlasClient.createEntity(LocalAtlasClient.java:85)
      at org.apache.atlas.AtlasClient.createEntity(AtlasClient.java:580)
      at org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.handleMessage(NotificationHookConsumer.java:203)
      at org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.run(NotificationHookConsumer.java:187)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      2016-05-19 02:59:39,379 WARN - [NotificationHookConsumer thread-0:] ~ Error handling message org.apache.atlas.notification.hook.HookNotification$EntityCreateRequest@24fc6736 (NotificationHookConsumer:233)
      org.apache.atlas.AtlasServiceException: Metadata service API CREATE_ENTITY failed with status 500(Internal Server Error) Response Body (java.lang.NullPointerException
      at org.apache.atlas.web.resources.EntityResource.submit(EntityResource.java:124)
      at org.apache.atlas.LocalAtlasClient$1.invoke(LocalAtlasClient.java:82)
      at org.apache.atlas.LocalAtlasClient$EntityOperation.run(LocalAtlasClient.java:118)
      at org.apache.atlas.LocalAtlasClient.createEntity(LocalAtlasClient.java:85)
      at org.apache.atlas.AtlasClient.createEntity(AtlasClient.java:580)
      at org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.handleMessage(NotificationHookConsumer.java:203)
      at org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.run(NotificationHookConsumer.java:187)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      )
      at org.apache.atlas.LocalAtlasClient$EntityOperation.run(LocalAtlasClient.java:122)
      at org.apache.atlas.LocalAtlasClient.createEntity(LocalAtlasClient.java:85)
      at org.apache.atlas.AtlasClient.createEntity(AtlasClient.java:580)
      at org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.handleMessage(NotificationHookConsumer.java:203)
      at org.apache.atlas.notification.NotificationHookConsumer$HookConsumer.run(NotificationHookConsumer.java:187)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      2016-05-19 02:59:39,380 DEBUG - [NotificationHookConsumer thread-0:] ~ Committed offset: 2 (KafkaConsumer:96)

      No exceptions in Hive logs.

      But all CTAS tables are imported and lineage graphs are properly rendered on Atlas UI.

      Attachments

        Issue Links

          Activity

            People

              shwethags Shwetha GS
              sharmadhas Sharmadha S
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: