samza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bae, Jae Hyeon" <metac...@gmail.com>
Subject Re: How to get Container ID from configuration
Date Fri, 06 Mar 2015 01:47:48 GMT
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 <criccomini@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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message