Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS >> mail # user >> understanding souce code structure


Copy link to this message
-
Re: understanding souce code structure
It can be overwhelming to jump into the HDFS code. Have you read the
architectural
overview of HDFS <https://hadoop.apache.org/docs/r1.0.4/hdfs_design.html>?

I found it easiest to start with the DFSClient interface which encapsulates
client operations.

The DFSClient communicates with the namenode using ClientProtocol.
The server side of the ClientProtocol handling is in NameNodeRpcServer.
Client communication with the DataNode is encapsulated in
DataTransferProtocol.

Feel free to ask more specific questions if you get stuck.

-Arpit
On Mon, May 27, 2013 at 11:22 AM, Jay Vyas <[EMAIL PROTECTED]> wrote:

> Hi!  a few weeks ago I had the same question... Tried a first iteration at
> documenting this by going through the classes starting with key/value pairs
> in the blog post below.
>
>
> http://jayunit100.blogspot.com/2013/04/the-kv-pair-salmon-run-in-mapreduce-hdfs.html
>
> Note it's not perfect yet but I think it should provide some insight into
> things.  The lynch pin of it all is the DFSOutputStream and the
> DataStreamer classes.   Anyways... Feel free to borrow the contents and
> roll your own , or comment on it & leave some feedback,or let me know if
> anything is missing.
>
> Definetly would be awesome to have a rock solid view of the full write
> path.
>
> On May 27, 2013, at 2:10 PM, Mahmood Naderan <[EMAIL PROTECTED]> wrote:
>
> Hello
>
> I am trying to understand the source of of hadoop especially the HDFS. I
> want to know where should I look exactly in the source code about how HDFS
> distributes the data. Also how the map reduce engine tries to read the
> data.
>
>
> Any hint regarding the location of those in the source code is appreciated.
>
> Regards,
> Mahmood*
> *
>
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB