1
0

[HUDI-2676] Hudi should synchronize owner information to hudi _rt/_ro table. (#3911)

This commit is contained in:
xiarixiaoyao
2021-11-03 20:36:01 +08:00
committed by GitHub
parent f2fb1aac26
commit acc40625f5

View File

@@ -18,6 +18,7 @@
package org.apache.hudi.hive.ddl;
import org.apache.hadoop.security.UserGroupInformation;
import org.apache.hudi.common.fs.FSUtils;
import org.apache.hudi.common.fs.StorageSchemes;
import org.apache.hudi.hive.HiveSyncConfig;
@@ -101,6 +102,7 @@ public class HMSDDLExecutor implements DDLExecutor {
Table newTb = new Table();
newTb.setDbName(syncConfig.databaseName);
newTb.setTableName(tableName);
newTb.setOwner(UserGroupInformation.getCurrentUser().getShortUserName());
newTb.setCreateTime((int) System.currentTimeMillis());
StorageDescriptor storageDescriptor = new StorageDescriptor();
storageDescriptor.setCols(fieldSchema);