October 2018
Beginner
220 pages
5h 33m
English
When you write your custom YARN application , you need to use the YarnClient API (https://hadoop.apache.org/docs/r3.1.0/api/org/apache/hadoop/yarn/client/api/YarnClient.html). You need to write a YARN client initially to create a client object, which you will be using for further calling. First, you create a new instance of YarnClient by calling static createYarnClient(). YarnClient requires a configuration object to initialize:
YarnClient yarnClient = YarnClient.createYarnClient();Configuration conf = new YarnConfiguration();//add your configuration hereyarnClient.init(conf);
A call to init() initializes the YarnClient service. Once a service is initialized, you need to start the YarnClient
Read now
Unlock full access