Hey Jae, Ah, yes, you are correct. 0.8.0 has container names, not IDs. In YARN, these names will be the YARN container names. I'm not sure what they're set to in Mesos--I'd have to check the Mesos JobRunner stuff.
Cheers, Chris On Thu, Mar 5, 2015 at 5:47 PM, Bae, Jae Hyeon <metac...@gmail.com> wrote: > ENV_CONTAINER_ID does not look existing in 0.8.0. I will try > ENV_CONTAINER_NAME. > > On Thu, Mar 5, 2015 at 5:09 PM, Chris Riccomini <criccom...@apache.org> > wrote: > >> Hey Jae, >> >> Also, this should work: >> >> System.getenv(ShellCommandConfig.ENV_CONTAINER_ID).toInt >> >> This is actually how SamzaContainer gets its containerId variable. BTW, >> I've opened: >> >> https://issues.apache.org/jira/browse/SAMZA-586 >> >> To track exposing SamzaContainerContext. >> >> Cheers, >> Chris >> > >