摘要: 1.基本数据类型 byte,char,short,int,long,float,double,boolen 类型都是类,int全名:scala.int (图来自:flink编程基础(scala版)pdf)可以不用声明类型 直接声明对应值 会自动匹配 操作符 操作符就是方法 5+3 等于 (5).+( 阅读全文
posted @ 2021-10-11 11:19 Aemnprsu_wx 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 如果es出现问题首先进行性能排查(使用压力) 1.性能监控 性能方面压力来自于查询和写入两个方面 对查询和写入进行监控 首先要获取系统写入和查询的最大值,进行压测获取 日常监控: 1)采用es自带的参数进行获取,没有直接获取的api,通过计算进行获取,保留历史数据 #encoding:utf-8im 阅读全文
posted @ 2021-04-16 20:56 Aemnprsu_wx 阅读(169) 评论(0) 推荐(0) 编辑
摘要: es无法分配分片变红(手动分配 可能丢数据) curl -XPOST 'http://10.10.10.10:9200/_cluster/reroute' -d '{ "commands": [ { "allocate": { "index": "index_name", "shard": 3, " 阅读全文
posted @ 2020-12-22 17:22 Aemnprsu_wx 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 声明es import elasticsearch6 es = elasticsearch6("10.10.10.10:9200") #查看当前所有仓库 es.snapshot.get_repository() #删除已存在的仓库(假设已存在的仓库叫"beifen") es.snapshot.del 阅读全文
posted @ 2020-05-15 18:29 Aemnprsu_wx 阅读(174) 评论(0) 推荐(0) 编辑
摘要: source:https://www.elastic.co/guide/en/elasticsearch/reference/6.4/docs.html 这章简单介绍一下es的数据数值模型,接下来是对crud api的详细描述 简单的文档API: indexAPI(索引): 索引api用来增加后者更 阅读全文
posted @ 2019-12-05 19:21 Aemnprsu_wx 阅读(167) 评论(0) 推荐(0) 编辑
摘要: source:https://www.elastic.co/guide/en/elasticsearch/reference/6.4/api-conventions.html es的API使用http的json格式进行请求(https://www.elastic.co/guide/en/elasti 阅读全文
posted @ 2019-11-27 16:58 Aemnprsu_wx 阅读(850) 评论(2) 推荐(1) 编辑
摘要: source:https://www.elastic.co/guide/en/elasticsearch/reference/6.4/getting-started-aggregations.html 聚合操作提供了对数据进行分组和提取统计的能力。简单的理解就是跟SQL中group by的操作一样的 阅读全文
posted @ 2019-11-25 17:45 Aemnprsu_wx 阅读(305) 评论(0) 推荐(0) 编辑
摘要: source:https://www.elastic.co/guide/en/elasticsearch/reference/6.4/getting-started-filters.html 在前面的章节中 我们跳过了一个小细节:文档打分(查询结果中的_score字段),这个数值是用来衡量结果与你搜 阅读全文
posted @ 2019-11-25 16:31 Aemnprsu_wx 阅读(122) 评论(0) 推荐(0) 编辑
摘要: source:https://www.elastic.co/guide/en/elasticsearch/reference/6.4/getting-started-search.html 现在我们了解了一些简单的查询参数,我们接下来研究一些queryDSL,首先我们看一下返回文档的内容。 默认情况 阅读全文
posted @ 2019-11-25 12:14 Aemnprsu_wx 阅读(146) 评论(0) 推荐(0) 编辑
摘要: source:https://www.elastic.co/guide/en/elasticsearch/reference/6.4/getting-started-query-lang.html es提供Json格式的查询语句。我们在query DSL中提起过。这个查询语言非常可靠,虽然看上去难懂 阅读全文
posted @ 2019-11-25 11:46 Aemnprsu_wx 阅读(145) 评论(0) 推荐(0) 编辑