The following commands can be used to restart the NameNode:
First, stop the NameNode using:
./sbin /Hadoop-daemon.sh stope NameNode
After this, start the NameNode using this command:
./sbin/Hadoop-daemon.sh start NameNode