You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Shanthoosh Venkataraman (JIRA)" <ji...@apache.org> on 2018/07/09 21:06:00 UTC

[jira] [Commented] (SAMZA-1765) Containers fail to start on YARN with Error: Main method not found in class SamzaContainer

    [ https://issues.apache.org/jira/browse/SAMZA-1765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16537595#comment-16537595 ] 

Shanthoosh Venkataraman commented on SAMZA-1765:
------------------------------------------------

[~erikaellison]

 
From samza 0.13 release, SamzaContainer is launched by LocalContainerRunner and the main method in it was removed(part of SAMZA-1137).
SamzaContainer launcher script `run-container.sh` was updated accordingly to use LocalContainerRunner class. 
Just for sanity check, can you please verify if you have appropriate run-container.sh deployment script(and not the old outdated one)?
Thanks.

> Containers fail to start on YARN with Error: Main method not found in class SamzaContainer
> ------------------------------------------------------------------------------------------
>
>                 Key: SAMZA-1765
>                 URL: https://issues.apache.org/jira/browse/SAMZA-1765
>             Project: Samza
>          Issue Type: Bug
>          Components: container, yarn
>    Affects Versions: 0.13.0, 0.14.0, 0.14.1
>         Environment: Hadoop/YARN 2.7.4
>            Reporter: Erika Ellison
>            Priority: Blocker
>
> 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:
> {code:java}
> openjdk version "1.8.0_161"
> OpenJDK Runtime Environment (build 1.8.0_161-b14)
> OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
> Error: Main method not found in class org.apache.samza.container.SamzaContainer, please define the main method as:
> public static void main(String[] args)
> or a JavaFX application class must extend javafx.application.Application{code}
>  
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)