|
@@ -4504,6 +4504,12 @@ public class FSNamesystem implements FSConstants, FSNamesystemMBean, FSClusterSt
|
|
|
throw new IOException(
|
|
|
"Delegation Token can be issued only with kerberos or web authentication");
|
|
|
}
|
|
|
+
|
|
|
+ if(dtSecretManager == null || !dtSecretManager.isRunning()) {
|
|
|
+ LOG.warn("trying to get DT with no secret manager running");
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
UserGroupInformation ugi = UserGroupInformation.getCurrentUser();
|
|
|
String user = ugi.getUserName();
|
|
|
Text owner = new Text(user);
|