Example usage for org.apache.hadoop.yarn.server MiniYARNCluster getConfig

List of usage examples for org.apache.hadoop.yarn.server MiniYARNCluster getConfig

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.server MiniYARNCluster getConfig.

Prototype

@Override
    public Configuration getConfig() 

Source Link

Usage

From source file:io.hops.tensorflow.TestUtils.java

License:Apache License

public static boolean dumpAllAggregatedContainersLogs(MiniYARNCluster yarnCluster, ApplicationId appId)
        throws Exception {
    LogsCLI logDumper = new LogsCLI();
    logDumper.setConf(yarnCluster.getConfig());
    int resultCode = logDumper.run(new String[] { "-applicationId", appId.toString() });
    return resultCode == 0;
}