This issue is a critical blocker as we try to upgrade to Samza's latest release 0.14.1. I have also tested versions 0.14.0 and 0.13.0, where I saw the same behavior. The version of Samza we are upgrading from is 0.11.0.
When I deploy a Samza app built against the new versions to YARN, I observe the following:
Application Manager container gets launched and runs successfully.
AM launches application containers, but the containers crash, before even samza-container-*.log is created and written to - stderr contains the following:
Sure enough, looking at version 0.11.0, SamzaContainer.scala used to have a main method, and in newer versions it does not. Beyond that, I'm not sure where to start investigating.
It may be worth noting that our Samza apps implement StreamTask, not the newer API of StreamApplication. There may be some straightforward change required to run apps implementing the older API on YARN, but I didn't find anything about that in the documentation.
It may also be helpful to note that I can run Samza apps with the newer version locally via the LocalThreadJobRunner, and the run loop is successfully entered.