Example usage for org.apache.hadoop.fs CommonConfigurationKeysPublic IPC_CLIENT_CONNECT_MAX_RETRIES_KEY

List of usage examples for org.apache.hadoop.fs CommonConfigurationKeysPublic IPC_CLIENT_CONNECT_MAX_RETRIES_KEY

Introduction

In this page you can find the example usage for org.apache.hadoop.fs CommonConfigurationKeysPublic IPC_CLIENT_CONNECT_MAX_RETRIES_KEY.

Prototype

String IPC_CLIENT_CONNECT_MAX_RETRIES_KEY

To view the source code for org.apache.hadoop.fs CommonConfigurationKeysPublic IPC_CLIENT_CONNECT_MAX_RETRIES_KEY.

Click Source Link

Usage

From source file:co.cask.cdap.app.mapreduce.MRJobClient.java

License:Apache License

@Inject
public MRJobClient(CConfiguration cConf, Configuration hConf) {
    int numRetries = cConf.getInt(Constants.AppFabric.MAPREDUCE_JOB_CLIENT_CONNECT_MAX_RETRIES);
    this.hConf = new Configuration(hConf);
    // Override a cloned hConf's configuration of IPC Client max retries based upon value in CConf to avoid longer
    // amounts of retrying (this is helpful especially when the Job History Server is not installed)
    this.hConf.setInt(CommonConfigurationKeysPublic.IPC_CLIENT_CONNECT_MAX_RETRIES_KEY, numRetries);
}

From source file:org.apache.tez.mapreduce.client.ClientServiceDelegate.java

License:Apache License

public ClientServiceDelegate(Configuration conf, ResourceMgrDelegate rm, JobID jobId) {
    this.conf = new TezConfiguration(conf); // Cloning for modifying.
    // For faster redirects from AM to HS.
    this.conf.setInt(CommonConfigurationKeysPublic.IPC_CLIENT_CONNECT_MAX_RETRIES_KEY, this.conf.getInt(
            MRJobConfig.MR_CLIENT_TO_AM_IPC_MAX_RETRIES, MRJobConfig.DEFAULT_MR_CLIENT_TO_AM_IPC_MAX_RETRIES));
}