Its an Ambari install. The issue was resolved. Actually the cleanup script is not removing contents fully in /etc folder. I am able to find a blog to manually remove them. Also I have to remove the postgres data file along with postgres installation.
Now able to bring up the system. Thanks for all your support and the post in the community forums.