Can you file a JIRA? The lines are boolean doAsEnabled = conf.getBoolVar(HiveConf.ConfVars.HIVE_SERVER2_ENABLE_DOAS); // either variables will never be null because a default value is returned in case of absence if (doAsEnabled != session.getConf().getBoolVar(HiveConf.ConfVars.HIVE_SERVER2_ENABLE_DOAS)) {
session is checked for null so somehow session.getConf() is probably null. On 17/3/2, 00:06, "邓志华" <zhihuade...@creditease.cn> wrote: >Hue 3.11.0 > >Hive: apache-hive-2.1.1 >the hs2 stack: >2017-03-02T10:50:31,986 ERROR [HiveServer2-Background-Pool: Thread-982] >exec.Task: Failed to execute tez graph. >java.lang.NullPointerException > at >org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolManager.canWorkWithSameSe >ssion(TezSessionPoolManager.java:430) > at >org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolManager.getSession(TezSes >sionPoolManager.java:451) > at >org.apache.hadoop.hive.ql.exec.tez.TezSessionPoolManager.getSession(TezSes >sionPoolManager.java:396) > at >org.apache.hadoop.hive.ql.exec.tez.TezTask.execute(TezTask.java:134) > at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:197) > at >org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:10 >0) > at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:2073) > at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1744) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1453) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1171) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1166) > at >org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.j >ava:242) > at >org.apache.hive.service.cli.operation.SQLOperation.access$800(SQLOperation >.java:91) > at >org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQ >LOperation.java:334) > 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:1660) > at >org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLO >peration.java:347) > 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) > >code in TezSessionPoolManager : > > if (doAsEnabled != >session.getConf().getBoolVar(HiveConf.ConfVars.HIVE_SERVER2_ENABLE_DOAS)) > >it seems that the session got from threadlocal has not been opened yet, >So the session.getConf() returns null. > >Am i right?What may the root cause? > > > > > >