@voruganti_vishw
Yes we can get some general ideas from various online link. But Cloudera recommends to follow the steps mentioned in this link.
The below link has refers to CDH 5.6 version, you can get any suitable version. I fact, I don't see any major difference in the details between different versions
The difference between the other onlink link and below one is , you need to download the spreadsheet template provided in the below link and carefully fill your current configuration, so that it will give you the recommended yarn configuration output based your current configuration. In case, if you add extra nodes or decomm any existing nodes, then you can recalculate and update your configuration.
https://www.cloudera.com/documentation/enterprise/5-6-x/topics/cdh_ig_yarn_tuning.html