Java Code Examples for org.apache.hadoop.yarn.client.RMProxy

The following examples show how to use org.apache.hadoop.yarn.client.RMProxy. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: TensorFlowOnYARN   Source File: TFApplicationRpcClient.java    License: Apache License 2.0 5 votes vote down vote up
private TFApplicationRpcClient(String serverAddress, int serverPort) throws IOException {
  InetSocketAddress address = new InetSocketAddress(serverAddress, serverPort);
  Configuration conf = new Configuration();
  RetryPolicy retryPolicy = RMProxy.createRetryPolicy(conf, false);
  TensorFlowCluster proxy = RMProxy.createRMProxy(conf, TensorFlowCluster.class, address);
  this.tensorflow = (TensorFlowCluster) RetryProxy.create(
      TensorFlowCluster.class, proxy, retryPolicy);
}
 
Example 2
Source Project: hadoop   Source File: TestNodeStatusUpdater.java    License: Apache License 2.0 5 votes vote down vote up
@Override
protected ResourceTracker getRMClient() throws IOException {
  RetryPolicy retryPolicy = RMProxy.createRetryPolicy(conf);
  resourceTracker =
      (ResourceTracker) RetryProxy.create(ResourceTracker.class,
        new MyResourceTracker6(rmStartIntervalMS, rmNeverStart),
        retryPolicy);
  return resourceTracker;
}
 
Example 3
Source Project: big-c   Source File: TestNodeStatusUpdater.java    License: Apache License 2.0 5 votes vote down vote up
@Override
protected ResourceTracker getRMClient() throws IOException {
  RetryPolicy retryPolicy = RMProxy.createRetryPolicy(conf);
  resourceTracker =
      (ResourceTracker) RetryProxy.create(ResourceTracker.class,
        new MyResourceTracker6(rmStartIntervalMS, rmNeverStart),
        retryPolicy);
  return resourceTracker;
}
 
Example 4
Source Project: hadoop   Source File: TestNodeStatusUpdater.java    License: Apache License 2.0 4 votes vote down vote up
@Override
protected ResourceTracker getRMClient() {
  RetryPolicy retryPolicy = RMProxy.createRetryPolicy(conf);
  return (ResourceTracker) RetryProxy.create(ResourceTracker.class,
    resourceTracker, retryPolicy);
}
 
Example 5
Source Project: big-c   Source File: TestNodeStatusUpdater.java    License: Apache License 2.0 4 votes vote down vote up
@Override
protected ResourceTracker getRMClient() {
  RetryPolicy retryPolicy = RMProxy.createRetryPolicy(conf);
  return (ResourceTracker) RetryProxy.create(ResourceTracker.class,
    resourceTracker, retryPolicy);
}