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> 

posted @ 2017-05-24 20:20  一心行走  阅读(2484)  评论(0编辑  收藏  举报