hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "He Yongqiang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-2406) return empty list instead of null for get_privileges
Date Wed, 24 Aug 2011 22:20:30 GMT

    [ https://issues.apache.org/jira/browse/HIVE-2406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13090559#comment-13090559
] 

He Yongqiang commented on HIVE-2406:
------------------------------------

with the fix, it is more clean:


hive> show grant user heyongqiang;
OK
Time taken: 0.121 seconds


will merge this small change with HIVE-2405

> return empty list instead of null for get_privileges
> ----------------------------------------------------
>
>                 Key: HIVE-2406
>                 URL: https://issues.apache.org/jira/browse/HIVE-2406
>             Project: Hive
>          Issue Type: Bug
>            Reporter: He Yongqiang
>            Assignee: He Yongqiang
>
> This is to remove the thrift exception when running hive, which enables authorization
and uses a thrift remote metastore.
> this is an example of stack:
>    > show grant user heyongqiang;
> org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.thrift.TApplicationException:
list_privileges failed: unknown result
> 	at org.apache.hadoop.hive.ql.metadata.Hive.showPrivilegeGrant(Hive.java:1784)
> 	at org.apache.hadoop.hive.ql.exec.DDLTask.showGrants(DDLTask.java:450)
> 	at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:351)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:132)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1343)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1134)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:943)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:253)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:210)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:401)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:660)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
> Caused by: org.apache.thrift.TApplicationException: list_privileges failed: unknown result
> 	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_list_privileges(ThriftHiveMetastore.java:2769)
> 	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.list_privileges(ThriftHiveMetastore.java:2734)
> 	at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.list_privileges(HiveMetaStoreClient.java:1086)
> 	at org.apache.hadoop.hive.ql.metadata.Hive.showPrivilegeGrant(Hive.java:1782)
> 	... 16 more
> org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.hadoop.hive.ql.metadata.HiveException:
org.apache.thrift.TApplicationException: list_privileges failed: unknown result
> 	at org.apache.hadoop.hive.ql.exec.DDLTask.showGrants(DDLTask.java:597)
> 	at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:351)
> 	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:132)
> 	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57)
> 	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1343)
> 	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1134)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:943)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:253)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:210)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:401)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:660)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
> Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.thrift.TApplicationException:
list_privileges failed: unknown result
> 	at org.apache.hadoop.hive.ql.metadata.Hive.showPrivilegeGrant(Hive.java:1784)
> 	at org.apache.hadoop.hive.ql.exec.DDLTask.showGrants(DDLTask.java:450)
> 	... 15 more
> Caused by: org.apache.thrift.TApplicationException: list_privileges failed: unknown result
> 	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_list_privileges(ThriftHiveMetastore.java:2769)
> 	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.list_privileges(ThriftHiveMetastore.java:2734)
> 	at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.list_privileges(HiveMetaStoreClient.java:1086)
> 	at org.apache.hadoop.hive.ql.metadata.Hive.showPrivilegeGrant(Hive.java:1782)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message