Example usage for org.apache.hadoop.yarn.ipc RPCUtil getRemoteException

List of usage examples for org.apache.hadoop.yarn.ipc RPCUtil getRemoteException

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.ipc RPCUtil getRemoteException.

Prototype

public static YarnException getRemoteException(String message) 

Source Link

Document

Returns an instance of YarnException

Usage

From source file:io.hops.util.GroupMembershipService.java

License:Apache License

private UserGroupInformation checkAcls(String method) throws YarnException {
    try {//from   w ww  . ja  v a  2 s  .  com
        return checkAccess(method);
    } catch (IOException ioe) {
        throw RPCUtil.getRemoteException(ioe);
    }
}