1、上传elasticsearh-hadoop的jar包到server1-hadoop-namenode-01上
在server1-hadoop-namenode-01上执行:
cp /home/dinpay/soft/elasticsearch-hadoop-2.3.4.jar /home/dinpay/hive/lib
2、然后修改hive-site.xml文件
cd /home/dinpay/hive/conf
vi hive-site.xml
增加内容:
<property>
<name>hive.aux.jars.path</name>
<value>file:///home/dinpay/hive/lib/elasticsearch-hadoop-2.3.4.jar</value>
<description>A comma separated list (with no spaces) of the jar files</description>
</property>