Do you have this error with any other commands? Any chance you could share the full stack trace of the error?
When you encounter this error, do you see any errors on the same timestamp in /var/log/ambari-server/ambari-server.log and the hive view log?
The hive view logs are located here;
In case of hive view 2.0
In case of hive view 1.5.0
Also, here are some other examples of the same error and resolutions;