hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohammad Mustaqeem <3m.mustaq...@gmail.com>
Subject Re: Which java code(file) generates the heartbeat from the datanode and which code(file) listen that heartbeat on the namenode?
Date Fri, 12 Apr 2013 10:08:32 GMT
Chris, thank you :)
I am using branch 2.
Can you tell me which code receives the heartbeat?
and which code selects the random rack for replication?


On Fri, Apr 12, 2013 at 12:25 AM, Chris Nauroth <cnauroth@hortonworks.com>wrote:

> Hello Mohammad,
>
> Which version of the codebase?
>
> If it's trunk or branch-2, then for the datanode side, I recommend starting
> from
>
> hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPServiceActor.java.
>  Look for a method named sendHeartBeat.  On the namenode side, look at
>
> hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeRpcServer.java.
>  Look for a method named sendHeartbeat.  (Notice the slight difference in
> capitalization of letter 'b'.)
>
> If it's a different branch, let me know, and I'd be happy to provide help
> on the specifics of that branch.
>
> Hope this helps,
> --Chris
>
>
> On Wed, Apr 10, 2013 at 11:03 PM, Mohammad Mustaqeem <
> 3m.mustaqeem@gmail.com
> > wrote:
>
> > Which java code(file) generates the heartbeat from the datanode and
> > which code(file) listen that heartbeat on the namenode?
> > --
> > *With regards ---*
> > *Mohammad Mustaqeem*,
> > M.Tech (CSE)
> > MNNIT Allahabad
> > 9026604270
> >
>



-- 
*With regards ---*
*Mohammad Mustaqeem*,
M.Tech (CSE)
MNNIT Allahabad
9026604270

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