I can execute hive queries in Java Code by hardcoding the HS2 Url or reading from an external config file like this
Connection conn = DriverManager.getConnect