List of usage examples for org.apache.hadoop.yarn.ipc RPCUtil unwrapAndThrowException
public static Void unwrapAndThrowException(ServiceException se) throws IOException, YarnException
From source file:com.github.hdl.tensorflow.yarn.app.api.impl.pb.client.TensorFlowClusterPBClientImpl.java
License:Apache License
@Override public GetClusterSpecResponse getClusterSpec(GetClusterSpecRequest request) throws YarnException, IOException { GetClusterSpecRequestProto requestProto = ((GetClusterSpecRequestPBImpl) request).getProto(); try {/*from ww w . j a v a 2s . c o m*/ return new GetClusterSpecResponsePBImpl(proxy.getClusterSpec(null, requestProto)); } catch (ServiceException e) { RPCUtil.unwrapAndThrowException(e); return null; } }
From source file:io.hops.util.impl.pb.client.GroupMembershipPBClientImpl.java
License:Apache License
@Override public LiveRMsResponse getLiveRMList() throws IOException, YarnException { ActiveRMListRequestProto requestProto = ActiveRMListRequestProto.getDefaultInstance(); try {/*from www . jav a 2 s .co m*/ return new LiveRMsResponsePBImpl(proxy.getLiveRMList(null, requestProto)); } catch (ServiceException e) { RPCUtil.unwrapAndThrowException(e); return null; } }