[prev in list] [next in list] [prev in thread] [next in thread]
List: hadoop-user
Subject: ContainerId starts with 1 ?
From: 李响 <waterlx () gmail ! com>
Date: 2024-02-23 8:21:43
Message-ID: CAPcmo=6+ZyvFZmqo4J_2HzAMcXyKeEb+OFJWLwMfvRydpS-zwA () mail ! gmail ! com
[Download RAW message or body]
Dear Hadoop/Yarn community,
In Yarn, a container is represented as
container_e*epoch*_*clusterTimestamp*_*appId*_*attemptId*_*containerId*
Regarding the last section, "containerId", as the sequential number of
containers, I notice it does not start with 0, but 1.
My question is:
1. Is that observation correct?
2. Sorry I do not find the code to support that. I read ContainerId.java
and ContainerIdPBImpl.java but does not find the answer. Could you please
show me the code path to support it staring with 1?
3. It seems counter-intuitive for me, as a programmer ^_^, who thinks the
index should start with 0, rather than 1. If it is designed to start with
1, any background / thought / discussion to share?
Thanks !!!
--
李响 Xiang Li
[Attachment #3 (text/html)]
<div dir="ltr">Dear Hadoop/Yarn community,<div><br></div><div>In Yarn, a container is \
represented as <span \
style="background-color:rgb(204,204,204)">container_e*epoch*_*clusterTimestamp*_*appId*_*attemptId*_<font \
color="#ff0000">*containerId*</font></span></div><div><br></div><div>Regarding the \
last section, "containerId", as the sequential number of containers, I \
notice it does not start with 0, but 1. </div><div><br></div><div>My question \
is:</div><div>1. Is that observation correct?</div><div>2. Sorry I do not find the \
code to support that. I read ContainerId.java and ContainerIdPBImpl.java but does not \
find the answer. Could you please show me the code path to support it staring with \
1?</div><div>3. It seems counter-intuitive for me, as a programmer ^_^, who thinks \
the index should start with 0, rather than 1. If it is designed to start with 1, any \
background / thought / discussion to share?</div><div><br></div><div>Thanks \
!!!</div><div> </div><div><br clear="all"><div><br></div><span \
class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" \
data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div \
dir="ltr"><div><br><font face="verdana, sans-serif"> \
李响 Xiang Li<br><br></font><br></div></div></div></div></div></div></div></div></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic