gedit - cannot open display

I am using Ubuntu 14.04 LTS, and for installing Hadoop I created hadoop user as hduser. When I try to open ~/.bashrc using gedit am getting an error as follows,

hduser@arul-java ~ $ gedit ~/.bashrc

(gedit:9254): Gtk-WARNING **: cannot open display: 
hduser@arul-java ~ $ 

How to solve it ?


Normally a server with Hadoop doesn't have a graphical environment and after a brief conversation in the chat turned out that it is not at all absolutely necessary to use gedit. It concerns only the processing of a configuration file and that's done quicker with nano or vi.