Elasticsearch6.2.1安装elasticsearch-sq插件
参考
https://github.com/NLPchina/elasticsearch-sql
1.下载插件
wget https://github.com/NLPchina/elasticsearch-sql/releases/download/6.2.1.0/elasticsearch-sql-6.2.1.0.zip
2.安装
./bin/elasticsearch-plugin instal file:///home/lintong/下载/elasticsearch-sql-6.2.1.0.zip
如果遇到 Exception in thread "main" java.lang.IllegalArgumentException: Unknown properties in plugin descriptor: [jvm, site]
解压zip文件,然后修改 plugin-descriptor.properties 文件
去掉下面两行后重新压缩成zip,然后再安装
site=
jvm=
参考
https://github.com/NLPchina/elasticsearch-sql/issues/610
3.下载前端组件
wget https://github.com/NLPchina/elasticsearch-sql/releases/download/5.4.1.0/es-sql-site-standalone.zip
解压
cd site-server
npm --registry https://registry.npm.taobao.org install express --save
node node-server.js
4.执行sql
curl -X GET "localhost:9200/_sql" -H 'Content-Type: application/json' -d'select * from es limit 10'
{"took":7,"timed_out":false,"_shards":{"total":5,"successful":5,"skipped":0,"failed":0},"hits":{"total":20000,"max_score":1.0,"hits":[{"_index":"es","_type":"people","_id":"0","_score":1.0,"_source":{"playerId":122,"logId":0,"dateTime":"2012-01-02 00:21:00","action":"私聊:нужен парень 0965188229"}},{"_index":"es","_type":"people","_id":"14","_score":1.0,"_source":{"playerId":343,"logId":14,"dateTime":"2012-01-02 00:35:00","action":"私聊:с новым годом!скучно девченкам.0988939122"}},{"_index":"es","_type":"people","_id":"19","_score":1.0,"_source":{"playerId":219,"logId":19,"dateTime":"2012-01-02 00:42:00","action":"私聊:ищу взрослую женщину звоните 0661464552"}},{"_index":"es","_type":"people","_id":"22","_score":1.0,"_source":{"playerId":822,"logId":22,"dateTime":"2012-01-02 00:45:00","action":"私聊:Жду смс от солидного мужчины за 47 0952342589"}},{"_index":"es","_type":"people","_id":"24","_score":1.0,"_source":{"playerId":111,"logId":24,"dateTime":"2012-01-02 00:47:00","action":"私聊:П27 ищу горячую снегурочку 0505618815"}},{"_index":"es","_type":"people","_id":"25","_score":1.0,"_source":{"playerId":204,"logId":25,"dateTime":"2012-01-02 00:48:00","action":"私聊:снегурочька хочет деда мороза.тома.0661796082"}},{"_index":"es","_type":"people","_id":"26","_score":1.0,"_source":{"playerId":789,"logId":26,"dateTime":"2012-01-02 00:49:00","action":"私聊:молодой парень 31год из сел.местн. Очень хочет познакомиться с м"}},{"_index":"es","_type":"people","_id":"29","_score":1.0,"_source":{"playerId":328,"logId":29,"dateTime":"2012-01-02 00:54:00","action":"私聊:ВСЕХ ПАРНЕЙ С НОВЫМ ГОДОМ ЛЮБВИ СЧАСТЬЯ.С УВ.СВЕТА 0666339477.ЗАДЕРЖ"}},{"_index":"es","_type":"people","_id":"40","_score":1.0,"_source":{"playerId":35,"logId":40,"dateTime":"2012-01-02 01:06:00","action":"私聊:ищю парня до21"}},{"_index":"es","_type":"people","_id":"41","_score":1.0,"_source":{"playerId":750,"logId":41,"dateTime":"2012-01-02 01:06:00","action":"私聊:ВСЕХ ДЕВУШЕК С НОВЫМ ГОДОМ Я ВАС ВСЕХ ЛЮБЛЮ 0507143632 СЕРЁГА"}}]}}
5.web界面
配置在site_configuration.json
Elasticsearch6.2.1安装elasticsearch-sq插件的更多相关文章
- ElasticSearch6学习(1)-安装Elasticsearch
安装准备: 安装Elasticsearch唯一的要求是安装Java8,包括对应的Jdk.其他java9/java10没尝试,考虑兼容问题.我这里只用了java8 安装java8可以参考我之前写的一篇文 ...
- linux(centos 7)下安装elasticsearch - head插件(端口占用,防火墙关闭)
本文章来自网络仅供个人学习记录之用 一:安装Git(如果未安装) 1, yum install git 2, git --version #查看版本 二:安装node(如果未安装) node安装 三: ...
- ubuntu安装elasticSearch及插件
原文地址:http://www.niu12.com/article/18 前提 1.安装好Java1.8以上环境并配置好JAVA_HOME(elasticsearch运行环境) 2.node环境6.5 ...
- 安装Elasticsearch可视化插件
背景 项目中使用Elasticsearch , 最开始14年使用的时候需要es自己安装插件才能通过web页面查看数据情况,目前新版本的ES安装插件很费劲,通过搜索发现目前谷歌浏览器就有这个插件,这里简 ...
- Mac下安装ElasticSearch及其插件
目录 环境介绍 安装过程 安装Kibana 环境介绍 软件版本:ElasticSearch7.0.0 Kibana7.0.0 系统环境:mac 环境 安装过程 官网下载 ElasticSearch7. ...
- docker安装elasticsearch及head插件
使用 Docker 拉取ElasticSearch镜像 docker pull elasticsearch:7.0.0 查看镜像 ID docker images 运行 docker run -e E ...
- docker安装elasticsearch和head插件
使用 Docker 拉取ElasticSearch镜像 docker pull elasticsearch:7.0.0 查看镜像 ID docker images 运行 docker run -e E ...
- chrome浏览器中安装以及使用Elasticsearch head 插件
一.安装Elasticsearch head 插件 下载安装包:https://github.com/liufengji/es-head/commit/121cdcb6d1b18656461e4889 ...
- Centos 7上安装Elasticsearch
1. 先安装jdk yum search java|grep jdk查看yum库中都有哪些jdk版本 yum install java-1.8.0-openjdk.x86_64 两次y确认 2. ce ...
- windows 下安装ElasticSearch方法
1.https://www.oracle.com/technetwork/java/javase/downloads/jdk12-downloads-5295953.html 在此页面下载安装JDK1 ...
随机推荐
- 目标检测论文解读4——Faster R-CNN
背景 Fast R-CNN中的region proposal阶段所采用的SS算法成为了检测网络的速度瓶颈,本文是在Fast R-CNN基础上采用RPN(Region Proposal Networks ...
- 在linux系统中如何通过shell脚本批量设置redis键值对
业务逻辑:批量设置redis中手机号的验证码为888888: 准备shell脚本如下:将18888888100~18888888110的手机号验证码设置为888888: #!/bin/bash ;i& ...
- public static void Swap2
public class Swap2 { public static void Swap2 (IDemo a, IDemo b) { int temp = a.i; a.i = b.i; b.i = ...
- java.lang.IllegalStateException: Service id not legal hostname (leyou_item_service)
. ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ...
- HDU 6583 Typewriter(后缀自动机)
Typewrite \[ Time Limit: 1500 ms\quad Memory Limit: 262144 kB \] 题意 给出一个字符串 \(s\),现在你需要构造出这个字符串,你每次可 ...
- LeetCode 286. Walls and Gates
原题链接在这里:https://leetcode.com/problems/walls-and-gates/ 题目: You are given a m x n 2D grid initialized ...
- ant-design-vue有v-decorator时defaultValue无效
<a-input v-decorator="[ 'userName', { rules: [ { required: true, message: '请输入您的账号!' } ], in ...
- JS对象创建模式
JS的对象创建模式 1.Object构造函数模式 var person = new Object(); person.name = 'name'; person.age = 43; console.l ...
- qwq。。胡诌qwq
1,十里寒塘,红楼灯火阑珊,晓风残月,思念醒了一半. 晨钟催落月,淑气催黄鸟,而花千树而你还未还,三月烟花,只剩远影孤帆,珠箔飘灯,大雁独自来返,柳絮铺地,桃花落了菀晚, 琴声弹起,雨落长安,长夜漫漫 ...
- 洛谷 P1621 集合
目录 题目 思路 \(Code\) 题目 P1621 集合 思路 并查集+埃氏筛,一开始连通块的个数是\(b-a+1\)个,在筛素数的过程中只要当前素数大于\(p\)就对该素数筛出来的数进行判断,如果 ...