I am writing a simple adapter that reads data from hive server and send it to my application. This adapter should run on all hive distributions(Horwonworks,Cloudera,MapR and others), so I need to add the local machine(with installed hive client) hive-jdbc standalone jar path to the classpath when running the adapter(along with some hadoop jars it seems), because I don't want to pack the jars along with my application to prevent client server version mismatch.
My question: How can I find the hive-jdbc standalone jar in the hive client location that will work on all the distributions? Is there an enviorment varialbe set to the hive libs location, and if so how can i set it?
Thanks