You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by th...@apache.org on 2014/09/09 03:56:31 UTC
svn commit: r1623611 -
/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java
Author: thejas
Date: Tue Sep 9 01:56:31 2014
New Revision: 1623611
URL: http://svn.apache.org/r1623611
Log:
HIVE-7943 : hive.security.authorization.createtable.owner.grants is ineffective with Default Authorization (Ashu Pachauri via Thejas Nair)
Modified:
hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java
Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java?rev=1623611&r1=1623610&r2=1623611&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java Tue Sep 9 01:56:31 2014
@@ -624,10 +624,10 @@ public class SessionState {
authorizerV2 = authorizerFactory.createHiveAuthorizer(new HiveMetastoreClientFactoryImpl(),
conf, authenticator, authzContextBuilder.build());
- authorizerV2.applyAuthorizationConfigPolicy(conf);
- // create the create table grants with new config
- createTableGrants = CreateTableAutomaticGrant.create(conf);
+ authorizerV2.applyAuthorizationConfigPolicy(conf);
}
+ // create the create table grants with new config
+ createTableGrants = CreateTableAutomaticGrant.create(conf);
} catch (HiveException e) {
throw new RuntimeException(e);