Example usage for org.apache.hadoop.yarn.client.api NMClient createNMClient

List of usage examples for org.apache.hadoop.yarn.client.api NMClient createNMClient

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.client.api NMClient createNMClient.

Prototype

@Public
public static NMClient createNMClient(String name) 

Source Link

Document

Create a new instance of NMClient.

Usage

From source file:org.elasticsearch.hadoop.yarn.am.NodeMasterRpc.java

License:Apache License

public void start() {
    if (client != null) {
        return;//w  w  w .ja  va  2 s .  c  o m
    }

    client = NMClient.createNMClient("Elasticsearch-YARN");
    YarnCompat.setNMTokenCache(client, tokenCache);
    client.init(cfg);
    client.start();
}