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

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

Introduction

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

Prototype

String IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY

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

Click Source Link

Usage

From source file:org.apache.tez.dag.app.launcher.ContainerLauncherImpl.java

License:Apache License

@Override
public synchronized void serviceInit(Configuration config) {
    Configuration conf = new Configuration(config);
    conf.setInt(CommonConfigurationKeysPublic.IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY, 0);
    this.limitOnPoolSize = conf.getInt(TezConfiguration.TEZ_AM_CONTAINERLAUNCHER_THREAD_COUNT_LIMIT,
            TezConfiguration.TEZ_AM_CONTAINERLAUNCHER_THREAD_COUNT_LIMIT_DEFAULT);
    LOG.info("Upper limit on the thread pool size is " + this.limitOnPoolSize);
}

From source file:org.apache.tez.dag.app.launcher.TezContainerLauncherImpl.java

License:Apache License

public TezContainerLauncherImpl(ContainerLauncherContext containerLauncherContext) {
    super(containerLauncherContext);
    try {//from   w  ww.  ja  va2  s . c  o  m
        this.conf = TezUtils.createConfFromUserPayload(containerLauncherContext.getInitialUserPayload());
    } catch (IOException e) {
        throw new TezUncheckedException(
                "Failed to parse user payload for " + TezContainerLauncherImpl.class.getSimpleName(), e);
    }
    conf.setInt(CommonConfigurationKeysPublic.IPC_CLIENT_CONNECTION_MAXIDLETIME_KEY, 0);
    this.limitOnPoolSize = conf.getInt(TezConfiguration.TEZ_AM_CONTAINERLAUNCHER_THREAD_COUNT_LIMIT,
            TezConfiguration.TEZ_AM_CONTAINERLAUNCHER_THREAD_COUNT_LIMIT_DEFAULT);
    LOG.info("Upper limit on the thread pool size is " + this.limitOnPoolSize);
}