elasticsearch-hadoop-hive-<eshadoopversion>.jaras parameter every time.
Other option for doing same thing is to open hive session and then calling following command as first thing
hive -hiveconf hive.aux.jars.path=/opt/elastic/elasticsearch-hadoop-2.4.3/dist/elasticsearch-hadoop-hive-2.4.3.jar;
Problem with both these approaches is that you will have to keep letting hive know the full path to elasticsearch jars every single time. Instead you can take care of this issue by copying
ADD JAR /opt/elastic/elasticsearch-hadoop-2.4.3/dist/elasticsearch-hadoop-hive-2.4.3.jar;
elasticsearch-hadoop-hive-<eshadoopversion>.jarinto same directory on every node in your local machine. In my case i copied it to
/usr/lib/hive/libdirectory by executing following command
Then set the value of Hive Auxiliary JARs Directory
sudo cp /opt/elastic/elasticsearch-hadoop-2.4.3/dist/elasticsearch-hadoop-hive-2.4.3.jar /usr/lib/hive/lib/.
/usr/lib/hive/libdirectory like this.