HDDS-608. Access denied exception for user hdfs while making getContainerWithPipeline call. Contributed by Mukul Kumar Singh.
This commit is contained in:
parent
5ce70e1211
commit
90552b1ea8
@ -187,7 +187,7 @@ public ContainerWithPipeline getContainerWithPipeline(long containerID)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
String remoteUser = getRpcRemoteUsername();
|
String remoteUser = getRpcRemoteUsername();
|
||||||
getScm().checkAdminAccess(remoteUser);
|
getScm().checkAdminAccess(null);
|
||||||
return scm.getContainerManager()
|
return scm.getContainerManager()
|
||||||
.getContainerWithPipeline(containerID);
|
.getContainerWithPipeline(containerID);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user