Need To connect to hive using spark using JDBC driver

Hi Team,
I want to connect to the hive using JDBC driver with spark. i tried using HiveContext and was able to connect. My requirement is to connect to different hosts. Using HiveContext I can connect to single host. Consider, I have two hive servers at different environment. I want to connect to these two hive using same code and fetch the result from both the servers. Is there way I can do.