参考

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插件的更多相关文章

  1. ElasticSearch6学习(1)-安装Elasticsearch

    安装准备: 安装Elasticsearch唯一的要求是安装Java8,包括对应的Jdk.其他java9/java10没尝试,考虑兼容问题.我这里只用了java8 安装java8可以参考我之前写的一篇文 ...

  2. linux(centos 7)下安装elasticsearch - head插件(端口占用,防火墙关闭)

    本文章来自网络仅供个人学习记录之用 一:安装Git(如果未安装) 1, yum install git 2, git --version #查看版本 二:安装node(如果未安装) node安装 三: ...

  3. ubuntu安装elasticSearch及插件

    原文地址:http://www.niu12.com/article/18 前提 1.安装好Java1.8以上环境并配置好JAVA_HOME(elasticsearch运行环境) 2.node环境6.5 ...

  4. 安装Elasticsearch可视化插件

    背景 项目中使用Elasticsearch , 最开始14年使用的时候需要es自己安装插件才能通过web页面查看数据情况,目前新版本的ES安装插件很费劲,通过搜索发现目前谷歌浏览器就有这个插件,这里简 ...

  5. Mac下安装ElasticSearch及其插件

    目录 环境介绍 安装过程 安装Kibana 环境介绍 软件版本:ElasticSearch7.0.0 Kibana7.0.0 系统环境:mac 环境 安装过程 官网下载 ElasticSearch7. ...

  6. docker安装elasticsearch及head插件

    使用 Docker 拉取ElasticSearch镜像 docker pull elasticsearch:7.0.0 查看镜像 ID docker images 运行 docker run -e E ...

  7. docker安装elasticsearch和head插件

    使用 Docker 拉取ElasticSearch镜像 docker pull elasticsearch:7.0.0 查看镜像 ID docker images 运行 docker run -e E ...

  8. chrome浏览器中安装以及使用Elasticsearch head 插件

    一.安装Elasticsearch head 插件 下载安装包:https://github.com/liufengji/es-head/commit/121cdcb6d1b18656461e4889 ...

  9. Centos 7上安装Elasticsearch

    1. 先安装jdk yum search java|grep jdk查看yum库中都有哪些jdk版本 yum install java-1.8.0-openjdk.x86_64 两次y确认 2. ce ...

  10. windows 下安装ElasticSearch方法

    1.https://www.oracle.com/technetwork/java/javase/downloads/jdk12-downloads-5295953.html 在此页面下载安装JDK1 ...

随机推荐

  1. Python线程join和setDaemon

    看一下线程的setDaemon()方法 import time import threading import ctypes import inspect def sayHello(): for i ...

  2. 《剑指Offer》-005 -用两个栈实现队列

    如题 (总结要点) 用两个栈实现队列 栈; 先进后出 队列: 先进先出 两个栈, 相等于两个杯子; 把一本水倒来倒去, 取到杯子底部的元素,并且删除,再倒回去 原文链接 : 借鉴学习文章列表 链接1: ...

  3. Flux 和 Mono 的区别

    Flux 和 Mono 是 Reactor 中的两个基本概念.Flux 表示的是包含 0 到 N 个元素的异步序列.在该序列中可以包含三种不同类型的消息通知:正常的包含元素的消息.序列结束的消息和序列 ...

  4. 如何将页脚固定在页面底部,4中方法 转载自:W3CPLUS

    原博客地址:http://www.w3cplus.com/css/css-sticky-foot-at-bottom-of-the-page 作为一个Web的前端攻城师,在制作页面效果时肯定有碰到下面 ...

  5. 20180520模拟赛T1——math

    [问题描述] 小美有 n 个点 m 条边. 让你给每个点一个正整数编号. 每条边有两个属性,相连的两个点的编号的 GCD 和 LCM. 题目保证整张图连通. 让你构造出一个编号. [输入格式] 从文件 ...

  6. signed Unsigned Compare

    // signUnsignCompare.cpp : Defines the entry point for the console application. // #include "st ...

  7. Ruby Raise rescue

    ruby1.9以上,retry只能支持在rescue里面使用,不支持在block里面用:你要去用ruby1.8 rescue使用代码例子 # -*- coding: UTF-8 -*- n = 0 b ...

  8. 【坑】js语法中一些小细节 不注意也出坑 随笔记下 留待后查

    1.switch case内 区分数字 与 字符 ',bl; switch(+lv){ :bl = 1.7;break; :bl = 1.55;break; :bl = 1.4;break; ; } ...

  9. vo bo po dao pojo dto

    Recommended for you: Get network issues from WhatsUp Gold.  Not end users. DAO: Data access object d ...

  10. clr调试扩展和DAC

    SOS.DLL.SOSEX.DLL这两个就是用来对.NET程序在Windows调试工具中起到翻译作用的调试器扩展.简单讲就是,这两个组件是.NET项目组专门开发出来用来对.NET应用程序进行方便调试用 ...