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

Regression : Hive hook is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0, 0.8.3
    • atlas-intg
    • None

    Description

      Hive table creation succeeded but while invoking Atlas hook , following error message seen in hive logs :

      2017-09-27 06:29:26,084 INFO  [Atlas Logger 0]: hook.HiveHook (HiveHook.java:collect(244)) - Entered Atlas hook for hook type POST_EXEC_HOOK, operation CREATETABLE , user null as hive
      2017-09-27 06:29:26,084 INFO  [HiveServer2-Background-Pool: Thread-236]: log.PerfLogger (PerfLogger.java:PerfLogBegin(149)) - <PERFLOG method=releaseLocks from=org.apache.hadoop.hive.ql.Driver>
      2017-09-27 06:29:26,084 INFO  [HiveServer2-Background-Pool: Thread-236]: log.PerfLogger (PerfLogger.java:PerfLogEnd(177)) - </PERFLOG method=releaseLocks start=1506493766084 end=1506493766084 duration=0 from=org.apache.hadoop.hive.ql.Driver>
      2017-09-27 06:29:26,085 INFO  [HiveServer2-Background-Pool: Thread-236]: log.PerfLogger (PerfLogger.java:PerfLogEnd(177)) - </PERFLOG method=Driver.run start=1506493763780 end=1506493766085 duration=2305 from=org.apache.hadoop.hive.ql.Driver>
      2017-09-27 06:29:26,087 ERROR [Atlas Logger 0]: hook.HiveHook (HiveHook.java:run(205)) - Atlas hook failed due to error 
      java.lang.NoClassDefFoundError: org/apache/atlas/AtlasServiceException
      	at org.apache.atlas.hive.hook.HiveHook.collect(HiveHook.java:246)
      	at org.apache.atlas.hive.hook.HiveHook.access$200(HiveHook.java:83)
      	at org.apache.atlas.hive.hook.HiveHook$2$1.run(HiveHook.java:198)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at javax.security.auth.Subject.doAs(Subject.java:422)
      	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1866)
      	at org.apache.atlas.hive.hook.HiveHook$2.run(HiveHook.java:195)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.ClassNotFoundException: org.apache.atlas.AtlasServiceException
      	at java.lang.ClassLoader.findClass(ClassLoader.java:530)
      	at org.apache.atlas.plugin.classloader.AtlasPluginClassLoader$MyClassLoader.findClass(AtlasPluginClassLoader.java:328)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at org.apache.atlas.plugin.classloader.AtlasPluginClassLoader.loadClass(AtlasPluginClassLoader.java:136)
      	... 12 more
      

      Attachments

        Issue Links

          Activity

            People

              apoorvnaik Apoorv Naik
              sharmadhas Sharmadha S
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: