Sorry, I am unable to paste the config file here as the file is on remote machine. I have compared the hive-site with that of another environment where hue and beeline are working fine.. The difference is in the following properties: hive.aux.jars.path com.db.fim.mr.encryption.key_path com.db.fim.mr.encryption.alias
It seems like there is a "newInstance" method call that is failing. Since it is the TextInputFormat class that's failing to construct, it seems like a version problem, classpath problem, or the class has been redefined somewhere.
The paths you've provided, could you verify the existence and accessibility of these paths? Also, have you tried removing those properties and seeing if that works?
If you check your HS2 logs (/var/log/hive/hive-server2.log), you should have a message that provides the classpath of HS2 as it boots up. It usually takes on the form "STARTUP_MSG: classpath = ". Could you please provide that classpath? Also, the HS2 logs should have the full exception of which you are describing with a stack trace. Could you provide that as well?