Hey Nafeesa,
Itseems that Hive is not able to connect to your namenode...please check if all the daemons are running..
Please go to cloudera manager and check the port no of namenode's UI...the port is supposed to be 9000. (localhost:9000)
Do let me know if you need more clarification.. :)