首页 > 代码库 > ElasticSearch和Hive做整合

ElasticSearch和Hive做整合

1、上传elasticsearh-hadoopjar包到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> 

ElasticSearch和Hive做整合