Thanks for the extra information!
For reference, the code that I was running was basically the code that can
be found here: https://github.com/hortonworks/simple-yarn-app. The issue
that I was having was when running from within intellij (aka without the
classpath bits that 'hadoop classpath'
Without looking at the code its hard to say. Perhaps looking at a working
code will put you in the right direction.
For example, here is the DistributedShell from Hadoop (only few classes)
Hi Everyone,
I'm new to YARN and was trying to write a simple YARN application that
starts up an ApplicationMaster that starts up an in-process Jetty server
just a simple test (this application requests no further resource
containers). An attempt is made to register as an application with the