Centos 6: NFS mount folder as nobody

The nfs mount map folder as nobody:nobody on CentOS 6.
The issue was idmapd had cached the incorrect ids from the faulty configuration.

To fix it enter command:
root@localhost$ nfsidmap -c (clear cache)