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

Hive hook fails due to session state not being set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.7-incubating
    • 0.7-incubating
    • None
    • None

    Description

      2016-06-15 11:34:30,423 WARN  [Atlas Logger 0]: hook.HiveHook (HiveHook.java:normalize(557)) - Could not rewrite query due to error. Proceeding with original query EXPORT TABLE test_export_table to 'hdfs://localhost:9000/hive_tables/test_path1'
      java.lang.NullPointerException: Conf non-local session path expected to be non-null
      	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
      	at org.apache.hadoop.hive.ql.session.SessionState.getHDFSSessionPath(SessionState.java:641)
      	at org.apache.hadoop.hive.ql.Context.<init>(Context.java:133)
      	at org.apache.hadoop.hive.ql.Context.<init>(Context.java:120)
      	at org.apache.atlas.hive.rewrite.HiveASTRewriter.<init>(HiveASTRewriter.java:44)
      	at org.apache.atlas.hive.hook.HiveHook.normalize(HiveHook.java:554)
      	at org.apache.atlas.hive.hook.HiveHook.getProcessReferenceable(HiveHook.java:702)
      	at org.apache.atlas.hive.hook.HiveHook.registerProcess(HiveHook.java:596)
      	at org.apache.atlas.hive.hook.HiveHook.fireAndForget(HiveHook.java:222)
      	at org.apache.atlas.hive.hook.HiveHook.access$200(HiveHook.java:77)
      	at org.apache.atlas.hive.hook.HiveHook$2.run(HiveHook.java:182)
      	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-06-15 11:34:30,423 ERROR [Atlas Logger 0]: hook.HiveHook (HiveHook.java:run(184)) - Atlas hook failed due to error
      java.lang.NullPointerException
      	at java.lang.StringBuilder.<init>(StringBuilder.java:109)
      	at org.apache.atlas.hive.hook.HiveHook.getProcessQualifiedName(HiveHook.java:738)
      	at org.apache.atlas.hive.hook.HiveHook.getProcessReferenceable(HiveHook.java:703)
      	at org.apache.atlas.hive.hook.HiveHook.registerProcess(HiveHook.java:596)
      	at org.apache.atlas.hive.hook.HiveHook.fireAndForget(HiveHook.java:222)
      	at org.apache.atlas.hive.hook.HiveHook.access$200(HiveHook.java:77)
      	at org.apache.atlas.hive.hook.HiveHook$2.run(HiveHook.java:182)
      	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)
      
      

      Attachments

        1. ATLAS-904.patch
          2 kB
          Suma Shivaprasad
        2. ATLAS-904.1.patch
          18 kB
          Suma Shivaprasad
        3. ATLAS-904.2.patch
          60 kB
          Suma Shivaprasad
        4. ATLAS-904.3.patch
          53 kB
          Suma Shivaprasad
        5. ATLAS-904.4.patch
          53 kB
          Hemanth Yamijala

        Issue Links

          Activity

            People

              suma.shivaprasad Suma Shivaprasad
              suma.shivaprasad Suma Shivaprasad
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: