[ https://issues.apache.org/jira/browse/HIVE-19582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16501616#comment-16501616 ]
Hive QA commented on HIVE-19582: -------------------------------- | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 6m 46s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 53s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 32s{color} | {color:green} master passed {color} | | {color:blue}0{color} | {color:blue} findbugs {color} | {color:blue} 3m 21s{color} | {color:blue} ql in master has 2277 extant Findbugs warnings. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 48s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 1m 9s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 55s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 0m 55s{color} | {color:green} the patch passed {color} | | {color:red}-1{color} | {color:red} checkstyle {color} | {color:red} 0m 33s{color} | {color:red} ql: The patch generated 2 new + 74 unchanged - 0 fixed = 76 total (was 74) {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 3m 29s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 47s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 11s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 19m 52s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Optional Tests | asflicense javac javadoc findbugs checkstyle compile | | uname | Linux hiveptest-server-upstream 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux | | Build tool | maven | | Personality | /data/hiveptest/working/yetus_PreCommit-HIVE-Build-11522/dev-support/hive-personality.sh | | git revision | master / f80cff9 | | Default Java | 1.8.0_111 | | findbugs | v3.0.0 | | checkstyle | http://104.198.109.242/logs//PreCommit-HIVE-Build-11522/yetus/diff-checkstyle-ql.txt | | modules | C: ql U: ql | | Console output | http://104.198.109.242/logs//PreCommit-HIVE-Build-11522/yetus.txt | | Powered by | Apache Yetus http://yetus.apache.org | This message was automatically generated. > NPE during CREATE ROLE using SQL Standard Based Hive Authorization > ------------------------------------------------------------------ > > Key: HIVE-19582 > URL: https://issues.apache.org/jira/browse/HIVE-19582 > Project: Hive > Issue Type: Bug > Components: Hive > Affects Versions: 3.0.0 > Reporter: Alexey Vakulenchuk > Assignee: Mykhailo Kysliuk > Priority: Major > Attachments: HIVE-19582.01.patch, HIVE-19582.02.patch > > > *General Info* > Hive version : 2.3.3 > {code:java} > commit 3f7dde31aed44b5440563d3f9d8a8887beccf0be > Author: Daniel Dai <da...@hortonworks.com> > Date: Wed Mar 28 16:46:29 2018 -0700 > Preparing for 2.3.3 release > {code} > Hadoop version: 2.7.2. > Engine > {code:java} > hive> set hive.execution.engine; > hive.execution.engine=mr{code} > Used official documentation: > [SQL Standard Based Hive > Authorization|https://cwiki.apache.org/confluence/display/Hive/SQL+Standard+based+hive+authorization#SQLStandardBasedHiveAuthorization-SetRole] > *Step 1. Configure hive-site.xml* > {code} > <property> > <name>hive.server2.enable.doAs</name> > <value>false</value> > </property> > <property> > <name>hive.users.in.admin.role</name> > <value>admin</value> > </property> > <property> > <name>hive.security.metastore.authorization.manager</name> > > <value>org.apache.hadoop.hive.ql.security.authorization.MetaStoreAuthzAPIAuthorizerEmbedOnly</value> > </property> > <property> > <name>hive.security.authorization.manager</name> > > <value>org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdConfOnlyAuthorizerFactory</value> > </property> > <property> > <name>hive.security.authorization.enabled</name> > <value>true</value> > </property> > <property> > <name>hive.security.authenticator.manager</name> > > <value>org.apache.hadoop.hive.ql.security.SessionStateUserAuthenticator</value> > </property> > {code} > *Step 2. Create ROLE* > hive> CREATE ROLE role1; > Actual result: > {code} > org.apache.hadoop.hive.ql.metadata.HiveException: Error while invoking > FailureHook. hooks: java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.reexec.ReExecutionOverlayPlugin$LocalHook.run(ReExecutionOverlayPlugin.java:45) > at > org.apache.hadoop.hive.ql.HookRunner.invokeGeneralHook(HookRunner.java:296) > at > org.apache.hadoop.hive.ql.HookRunner.runFailureHooks(HookRunner.java:283) > at org.apache.hadoop.hive.ql.Driver.invokeFailureHooks(Driver.java:2353) > at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:2123) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1756) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1497) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1491) > at > org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:157) > at > org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:204) > at > org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:239) > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:188) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:402) > at > org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:821) > at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:759) > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:683) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.apache.hadoop.util.RunJar.run(RunJar.java:308) > at org.apache.hadoop.util.RunJar.main(RunJar.java:222) > FAILED: Hive Internal Error: > org.apache.hadoop.hive.ql.metadata.HiveException(Error while invoking > FailureHook. hooks: java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.reexec.ReExecutionOverlayPlugin$LocalHook.run(ReExecutionOverlayPlugin.java:45) > at > org.apache.hadoop.hive.ql.HookRunner.invokeGeneralHook(HookRunner.java:296) > at > org.apache.hadoop.hive.ql.HookRunner.runFailureHooks(HookRunner.java:283) > at org.apache.hadoop.hive.ql.Driver.invokeFailureHooks(Driver.java:2353) > at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:2123) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1756) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1497) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1491) > at > org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:157) > at > org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:204) > at > org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:239) > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:188) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:402) > at > org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:821) > at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:759) > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:683) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.apache.hadoop.util.RunJar.run(RunJar.java:308) > at org.apache.hadoop.util.RunJar.main(RunJar.java:222) > ) > org.apache.hadoop.hive.ql.metadata.HiveException: Error while invoking > FailureHook. hooks: java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.reexec.ReExecutionOverlayPlugin$LocalHook.run(ReExecutionOverlayPlugin.java:45) > at > org.apache.hadoop.hive.ql.HookRunner.invokeGeneralHook(HookRunner.java:296) > at > org.apache.hadoop.hive.ql.HookRunner.runFailureHooks(HookRunner.java:283) > at org.apache.hadoop.hive.ql.Driver.invokeFailureHooks(Driver.java:2353) > at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:2123) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1756) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1497) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1491) > at > org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:157) > at > org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:204) > at > org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:239) > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:188) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:402) > at > org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:821) > at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:759) > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:683) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.apache.hadoop.util.RunJar.run(RunJar.java:308) > at org.apache.hadoop.util.RunJar.main(RunJar.java:222) > at > org.apache.hadoop.hive.ql.HookRunner.invokeGeneralHook(HookRunner.java:302) > at > org.apache.hadoop.hive.ql.HookRunner.runFailureHooks(HookRunner.java:283) > at org.apache.hadoop.hive.ql.Driver.invokeFailureHooks(Driver.java:2353) > at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:2123) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1756) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1497) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1491) > at > org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:157) > at > org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:204) > at > org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:239) > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:188) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:402) > at > org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:821) > at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:759) > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:683) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.apache.hadoop.util.RunJar.run(RunJar.java:308) > at org.apache.hadoop.util.RunJar.main(RunJar.java:222) > Caused by: java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.reexec.ReExecutionOverlayPlugin$LocalHook.run(ReExecutionOverlayPlugin.java:45) > at > org.apache.hadoop.hive.ql.HookRunner.invokeGeneralHook(HookRunner.java:296) > ... 20 more > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)