use of org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.SetPermissionRequestProto in project hadoop by apache.
the class ClientNamenodeProtocolTranslatorPB method setPermission.
@Override
public void setPermission(String src, FsPermission permission) throws IOException {
SetPermissionRequestProto req = SetPermissionRequestProto.newBuilder().setSrc(src).setPermission(PBHelperClient.convert(permission)).build();
try {
if (Client.isAsynchronousMode()) {
rpcProxy.setPermission(null, req);
setAsyncReturnValue();
} else {
rpcProxy.setPermission(null, req);
}
} catch (ServiceException e) {
throw ProtobufHelper.getRemoteException(e);
}
}
Aggregations