Hi @Mathi Murugan,
The simply way to retrieve particular Rowkey from hbase to HDFS is,
Run the scan command using echo with hbase shell and store the results to local then copy the results to HDFS.
Sample Shell script would be
bash# cat hbase_scan.sh
echo "scan 'test_use',{FILTER =>\"(PrefixFilter ('4'))\"}"|hbase shell>hbase.txt
hadoop fs -put -f /<local-path-to>/hbase.txt /<hadoop-path>/
wait
rm <local-path-to>/hbase.txt
In this script we are storing the scan results to hbase.txt file in local
Then copying the file to HDFS
Then deleting the local file.