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

        增加内容:

  

        hive.aux.jars.path

        file:///home/dinpay/hive/lib/elasticsearch-hadoop-2.3.4.jar

        A comma separated list (with no spaces) of the jar files

   

转载于:https://www.cnblogs.com/atomicbomb/p/6900808.html

你可能感兴趣的:(ElasticSearch和Hive做整合)