Issue while logging on to HIVE

while logging on to HIVE from command I am facing the below error.
Also I am not able to run HIVE queries from HIve console.

Java HotSpot™ 64-Bit Server VM warning: INFO: os::commit_memory(0x0000750f09000000, 486014976, 0) failed; error=‘Cannot allocate memory’ (errno=12)
Unable to determine Hadoop version information.
‘hadoop version’ returned:

Error while executing queries from HIVE console form Ambari

E090 HDFS020 Could not write file /user/yaswanthkalva/hive/jobs/hive-job-5395-2017-05-17_12-24/query.hql [HdfsApiException]

It is resolved!!! Please revert to us if issue persists.

When I am trying to access hive from ambari, I get following error
Issues detected
Service ‘ats’ check failed: Server Error

My user is is @abhishakeagarwal