org.apache.hadoop.yarn.client.RMProxy Java Examples
The following examples show how to use
org.apache.hadoop.yarn.client.RMProxy.
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 File: TFApplicationRpcClient.java From TensorFlowOnYARN with Apache License 2.0 | 5 votes |
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 File: TestNodeStatusUpdater.java From hadoop with Apache License 2.0 | 5 votes |
@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 File: TestNodeStatusUpdater.java From big-c with Apache License 2.0 | 5 votes |
@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 File: TestNodeStatusUpdater.java From hadoop with Apache License 2.0 | 4 votes |
@Override protected ResourceTracker getRMClient() { RetryPolicy retryPolicy = RMProxy.createRetryPolicy(conf); return (ResourceTracker) RetryProxy.create(ResourceTracker.class, resourceTracker, retryPolicy); }
Example #5
Source File: TestNodeStatusUpdater.java From big-c with Apache License 2.0 | 4 votes |
@Override protected ResourceTracker getRMClient() { RetryPolicy retryPolicy = RMProxy.createRetryPolicy(conf); return (ResourceTracker) RetryProxy.create(ResourceTracker.class, resourceTracker, retryPolicy); }