Daniel Voros created HIVE-20066: ----------------------------------- Summary: hive.load.data.owner is compared to full principal Key: HIVE-20066 URL: https://issues.apache.org/jira/browse/HIVE-20066 Project: Hive Issue Type: Bug Reporter: Daniel Voros Assignee: Daniel Voros
HIVE-19928 compares the user running HS2 to the configured owner (hive.load.data.owner) to check if we're able to move the file with LOAD DATA or need to copy. This check compares the full username (that may contain the full kerberos principal) to hive.load.data.owner. We should compare to the short username ({{UGI.getShortUserName()}}) instead. That's used in similar context [here|https://github.com/apache/hive/blob/f519db7eafacb4b4d2d9fe2a9e10e908d8077224/common/src/java/org/apache/hadoop/hive/common/FileUtils.java#L398]. cc [~djaiswal] -- This message was sent by Atlassian JIRA (v7.6.3#76005)