When I wanted to execute
hadoopmaster@dhruvhadoop3-HP-Compaq-dc5800-Small-Form-Factor:~$ sudo gedit ~/.bashrc
It gave me the following error
sudo: unable to resolve host dhruvhadoop3-HP-Compaq-dc5800-Small-Form-Factor
[sudo] password for hadoopmaster:
hadoopmaster is not in the sudoers file. This incident will be reported.