In hive, the tables & databases created in hive are owned by user “hive” in HDFS, rather than the user that creates them. This is in HDP2.1.5 using beeline (“create database testing”)
I’ve got hive.metastore.execute.setugi=True and hive.server2.enable.doAs=True
Authorization is enabled but Authentication is not enabled (as hive ldap authentication is not yet compatible with openldap).
Just was curious if anyone had seen this before and found a workaround.
Logs: (it seems to know “ownerName” = “automation” but then “ugi=hive” which seems strange).
2014-09-12 13:17:05,063 INFO [pool-3-thread-133]: metastore.HiveMetaStore (HiveMetaStore.java:logInfo(661)) – 3: source:/192.168.32.2 create_database: Database(name:testing, description:null, locationUri:null, parameters:null, ownerName:automation, ownerType:USER)
2014-09-12 13:17:05,064 INFO [pool-3-thread-133]: HiveMetaStore.audit (HiveMetaStore.java:logAuditEvent(312)) – ugi=hive ip=/192.168.32.2 cmd=source:/192.168.32.2 create_database: Database(name:testing, description:null, locationUri:null, parameters:null, ownerName:automation, ownerType:USER)