es
SherryGo
这个作者很懒,什么都没留下…
展开
-
docker安装skywalking
1、安装es# pull es镜像docker pull elasticsearch:7.4.2# 创建es容器docker run --name es -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e ES_JAVA_OPTS="-Xms512m -Xmx1024m" -d elasticsearch:7.4.22、安装skywalkingdocker pull apache/skywalking-base:8原创 2022-02-25 11:54:20 · 1853 阅读 · 0 评论 -
Elasticsearch常见查询语句
1、查看所有index(类似mysql的database)http://192.168.194.16:9200/_cat/indices?v2、查看某个index的type(类似mysql的table)http://192.168.194.16:9200/elastic_segment-20211201/_search3、获取所有index的结构http://localhost:9200/_mapping?pretty=truehttp://localhost:9200/index/typ原创 2021-12-22 15:49:41 · 1175 阅读 · 0 评论 -
python获取ElasticSearch数据
1、导入es的python库from elasticsearch import Elasticsearchfrom elasticsearch.helpers import bulkfrom elasticsearch import helpersimport pandas as pdimport os2、连接eses = Elasticsearch(hosts="http://192.168.194.16:9200/",timeout=30, max_retries=10, r..原创 2021-12-22 15:47:02 · 2498 阅读 · 0 评论