Repository: hive
Updated Branches:
  refs/heads/branch-3 d7128cf85 -> e8521517e


HIVE-20066 : hive.load.data.owner is compared to full principal (Daniel Voros 
via Zoltan Haindrich)

Signed-off-by: Ashutosh Chauhan <hashut...@apache.org>
(cherry picked from commit 5e2a530cc857c36dc97de6f5bec4003c569d00bd)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/e8521517
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/e8521517
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/e8521517

Branch: refs/heads/branch-3
Commit: e8521517e3f3f5f67bf986456b4e21558b8f92e1
Parents: d7128cf
Author: Daniel Voros <daniel.vo...@gmail.com>
Authored: Wed Jul 4 12:15:34 2018 -0700
Committer: Zoltan Haindrich <k...@rxd.hu>
Committed: Thu Jul 5 08:19:48 2018 +0200

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/e8521517/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java 
b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
index ea200c8..2e05e15 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
@@ -3834,7 +3834,7 @@ private void constructOneLBLocationMap(FileStatus fSta,
 
       try {
         srcs = srcFs.getFileStatus(srcf);
-        String runningUser = UserGroupInformation.getLoginUser().getUserName();
+        String runningUser = 
UserGroupInformation.getLoginUser().getShortUserName();
         boolean isOwned = FileUtils.isOwnerOfFileHierarchy(srcFs, srcs, 
configuredOwner, false);
         if (configuredOwner.equals(runningUser)) {
           // Check if owner has write permission, else it will have to copy

Reply via email to