HDDS-608. Access denied exception for user hdfs while making getContainerWithPipeline call. Contributed by Mukul Kumar Singh.
(cherry picked from commit 90552b1ea8
)
This commit is contained in:
parent
b64fcc71f1
commit
79d11e50a7
|
@ -187,7 +187,7 @@ public class SCMClientProtocolServer implements
|
|||
}
|
||||
}
|
||||
String remoteUser = getRpcRemoteUsername();
|
||||
getScm().checkAdminAccess(remoteUser);
|
||||
getScm().checkAdminAccess(null);
|
||||
return scm.getContainerManager()
|
||||
.getContainerWithPipeline(containerID);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue