hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Holmes <>
Subject Hive 0.7.1 authorization woes
Date Tue, 16 Aug 2011 21:55:29 GMT
Hi all,

I've been struggling with getting Hive authorization to work for a few
hours, and I really hope someone can help me.  I installed Hive 0.7.1
on top of Hadoop 0.20.203.  I'm using mysql for the metastore, and
configured Hive to enable authorization:

  <description>enable or disable the hive client authorization</description>

I kept all the other Hive security configs with their default settings.

I'm running in pseudo-distributed mode on a single node.  HDFS, the Hive
metastore and the Hive CLI are all running as the same user (the HDFS
superuser).  Here are the sequence of steps that are causing me issues.
Without authorization everything works perfectly (creating, loading, selecting).
I've also tried creating and loading the table without authorization, granting
the select privilege at various levels (global, table, database), turning on
auth and performing the select, resulting in the same exception.

Any help with this would be greatly appreciated!



[hduser@aholmes-desktop ~]$ hive
Hive history file=/tmp/hduser/hive_job_log_hduser_201108162158_1976573160.txt
hive> set;
hive> grant all to user hduser;
Time taken: 0.233 seconds
hive> set;
hive> CREATE TABLE pokes3 (foo INT, bar STRING);
FAILED: Hive Internal Error:
get_privilege_set failed: unknown result)
org.apache.thrift.TApplicationException: get_privilege_set failed:
unknown result
	at org.apache.hadoop.hive.ql.metadata.Hive.get_privilege_set(
	at org.apache.hadoop.hive.ql.Driver.doAuthorization(
	at org.apache.hadoop.hive.ql.Driver.compile(
	at org.apache.hadoop.hive.cli.CliDriver.processCmd(
	at org.apache.hadoop.hive.cli.CliDriver.processLine(
	at org.apache.hadoop.hive.cli.CliDriver.main(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.apache.hadoop.util.RunJar.main(
Caused by: org.apache.thrift.TApplicationException: get_privilege_set
failed: unknown result
	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_get_privilege_set(
	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.get_privilege_set(
	at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.get_privilege_set(
	at org.apache.hadoop.hive.ql.metadata.Hive.get_privilege_set(
	... 14 more

View raw message