This project has two main goals.
- To serve as a tutorial for those who would like to learn YARN
- An attempt to define a simpler (developer friendly) YARN API, that the end user can use. - Yet Another Yarn API (YAYA?)
// Create a command to be executed in the container launched by the Application Master
UnixCommand applicationCommand = new UnixCommand("cal");
// or create a Java command
// JavaCommand applicationCommand = new JavaCommand(HelloWorld.class);
// Create YARN application
YarnApplication yarnApplication =
YarnApplicationBuilder.forApplication("sample-yarn-app", applicationCommand).build();
// Launch YARN application
yarnApplication.launch();
This is an evolving work in progress so more updates (code and documentation) will be coming soon
Please send question and updates via pull requests and/or raising issues on this project.