@Nitin Gangasagar
There is nothing special here. R really does not run on top of Hadoop. What you can do is install R-packages using R-Studio that will help connect your R program to fetch data from Hadoop. some of the packages are rhdfs, plymr, and rhbase. Check following link for example:
https://datascienceplus.com/integrating-r-with-apache-hadoop/