[ https://issues.apache.org/jira/browse/HIVE-10829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14561600#comment-14561600 ]
Gunther Hagleitner commented on HIVE-10829: ------------------------------------------- +1 patch will fix the issue and is benign. However, it seems there are other places in that file that uses "work" and ultimately it might be better to not call this with null from ATS. Should be open a separate jira to make the ATSHook call the explain properly? > ATS hook fails for explainTask > ------------------------------ > > Key: HIVE-10829 > URL: https://issues.apache.org/jira/browse/HIVE-10829 > Project: Hive > Issue Type: Bug > Reporter: Pengcheng Xiong > Assignee: Pengcheng Xiong > Priority: Minor > Attachments: HIVE-10829.01.patch > > > Commands: > create table idtable(id string); > create table ctastable as select * from idtable; > With ATS hook: > 2015-05-22 18:54:47,092 INFO [ATS Logger 0]: hooks.ATSHook > (ATSHook.java:run(136)) - Failed to submit plan to ATS: > java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.exec.ExplainTask.outputPlan(ExplainTask.java:589) > at > org.apache.hadoop.hive.ql.exec.ExplainTask.outputPlan(ExplainTask.java:576) > at > org.apache.hadoop.hive.ql.exec.ExplainTask.outputPlan(ExplainTask.java:821) > at > org.apache.hadoop.hive.ql.exec.ExplainTask.outputStagePlans(ExplainTask.java:965) > at > org.apache.hadoop.hive.ql.exec.ExplainTask.getJSONPlan(ExplainTask.java:219) > at org.apache.hadoop.hive.ql.hooks.ATSHook$2.run(ATSHook.java:120) > 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) -- This message was sent by Atlassian JIRA (v6.3.4#6332)