title: Apache HBase : How does Region Server write Hfile to HDFS
body: <p>Is this done VIA HDFS API - if this is the case the how the data locality is achieved [Assumption the Region server and the Datanode on same system ]  i.e. the NameNode will allocate the Datanodes as per its statistics to store the data. </p>