Building a YARN application
There are different approaches to building a YARN application. You can use your development environment to compile and create a JAR file out of it. In Eclipse, you can go to File | Export | Jar File, then you can choose the required classes and other artifacts and create the JAR file to be deployed. If you are using a Maven project, simply right-click on pom.xml | Run as | Maven install. You can also use the command line to run mvn install to generate the JAR file in your project target location.
Alternatively, you can use the yarn jar CLI to pass your compiled JAR file as input to the cluster. So, first create and package your project in Java Archive form. Once it is done, you can run it with the following YARN ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access