|
@@ -982,7 +982,7 @@ public class DataNode extends ReconfigurableBase
|
|
|
|
|
|
// Is this by the DN user itself?
|
|
// Is this by the DN user itself?
|
|
assert dnUserName != null;
|
|
assert dnUserName != null;
|
|
- if (callerUgi.getShortUserName().equals(dnUserName)) {
|
|
|
|
|
|
+ if (callerUgi.getUserName().equals(dnUserName)) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1300,7 +1300,7 @@ public class DataNode extends ReconfigurableBase
|
|
this.blockPoolTokenSecretManager = new BlockPoolTokenSecretManager();
|
|
this.blockPoolTokenSecretManager = new BlockPoolTokenSecretManager();
|
|
|
|
|
|
// Login is done by now. Set the DN user name.
|
|
// Login is done by now. Set the DN user name.
|
|
- dnUserName = UserGroupInformation.getCurrentUser().getShortUserName();
|
|
|
|
|
|
+ dnUserName = UserGroupInformation.getCurrentUser().getUserName();
|
|
LOG.info("dnUserName = " + dnUserName);
|
|
LOG.info("dnUserName = " + dnUserName);
|
|
LOG.info("supergroup = " + supergroup);
|
|
LOG.info("supergroup = " + supergroup);
|
|
initIpcServer(conf);
|
|
initIpcServer(conf);
|
|
@@ -3307,4 +3307,4 @@ public class DataNode extends ReconfigurableBase
|
|
void setBlockScanner(BlockScanner blockScanner) {
|
|
void setBlockScanner(BlockScanner blockScanner) {
|
|
this.blockScanner = blockScanner;
|
|
this.blockScanner = blockScanner;
|
|
}
|
|
}
|
|
-}
|
|
|
|
|
|
+}
|