社区日报 第141期 (2017-12-25)
社区日报 • cyberdak 发表了文章 • 0 个评论 • 1860 次浏览 • 2017-12-25 10:37
http://t.cn/RHAyUPV
2.如何构建一个搜索UI。
http://t.cn/RToO9aU
3.使用ELK监控Spark集群。
http://t.cn/RHAA6Me
4.(德语)Elastic Advent Calendar, Day 24: 用Elasticsearch和Kibana进行数据探索
http://t.cn/RHAZZbV
编辑:cyberdak
归档:https://elasticsearch.cn/article/433
订阅:https://tinyletter.com/elastic-daily
filebeat 在linux下无法直接使用/* 来读取日志文件
Beats • xinfanwang 回复了问题 • 5 人关注 • 7 个回复 • 4477 次浏览 • 2018-04-11 09:47
elasticsearch集群状态的疑问
Elasticsearch • medcl 回复了问题 • 4 人关注 • 2 个回复 • 2272 次浏览 • 2018-01-16 11:01
如何计算某个字段满足一定条件的值的个数占总个数的比例
回复Elasticsearch • hellowWorld 发起了问题 • 1 人关注 • 0 个回复 • 2704 次浏览 • 2017-12-24 14:41
社区日报 第140期 (2017-12-24)
社区日报 • 至尊宝 发表了文章 • 0 个评论 • 2016 次浏览 • 2017-12-24 09:52
http://t.cn/RHhL7ss
2.(自备梯子)用Zipkin和Kibana跟踪微服务。
http://t.cn/RHPkfsi
3.(自备梯子)Apache Kafka的区块链实验。
http://t.cn/RHPsx09
4.(英语)Elastic Advent Calendar, Day 23: 新用户的Kibana小贴士
http://t.cn/RHhAlGm
编辑:至尊宝
归档:https://elasticsearch.cn/article/432
订阅:https://tinyletter.com/elastic-daily
Elasticsearch关于unassigned shards修复
Elasticsearch • arterforyou 发表了文章 • 2 个评论 • 6133 次浏览 • 2017-12-23 12:23
ES 版本: 5.2.1
步骤:
- curl localhost:9200/_cat/shards > shards
- 跑脚本:nohup python recovery.py &
注意:跑脚本过程会返回大量json,时间较长,请注意放入后台
- 查看修复shard进度:curl 127.0.0.1:9200/_cat/recovery/你修复shard对应的索引
- 结果: 找到索引对应的shard,看到existing_store done说明已经从本地修复
shell<br /> index 19 268ms existing_store done n/a n/a 10.0.58.67 node_name<br />
```python
!/usr/bin/env python
name: recovery.py
import requests
import json
host = "<a href="http://localhost:9200/_cluster/allocation/explain"" rel="nofollow" target="_blank">http://localhost:9200/_cluster ... ot%3B
s= requests.Session()
def reroute_shard(index,shard,node):
data = {
"commands" : [
{
"allocate_stale_primary" : {
"index" : index, "shard" : shard, "node" : node, "accept_data_loss": True
}
}
]
}
print data
url = "<a href="http://localhost:9200/_cluster/reroute"" rel="nofollow" target="_blank">http://localhost:9200/_cluster/reroute"
res = s.post(url,json=data)
print res
def get_node(line):
if "UNASSIGNED" in line:
line = line.split()
index = line[0]
shard = line[1]
if line[2] != "p":
return
body = {
"index": index,
"shard": shard,
"primary": True
}
res = s.get(host, json = body)
for store in res.json().get("node_allocation_decisions"):
if store.get("store").get("allocation_id"):
node_name = store.get("node_name")
reroute_shard(index,shard,node_name)
else:
return
with open("shards", 'rb') as f:
map(get_node,f)
```
相关文档:- https://www.elastic.co/guide/e ... .html
- https://www.elastic.co/guide/e ... .html
- https://www.elastic.co/guide/e ... .html
elasticsearch安装插件需要重启的问题
Elasticsearch • medcl 回复了问题 • 5 人关注 • 1 个回复 • 5544 次浏览 • 2018-01-16 11:17
社区日报 第139期 (2017-12-23)
社区日报 • bsll 发表了文章 • 0 个评论 • 2220 次浏览 • 2017-12-23 08:57
http://t.cn/RTkTb0f
2、使用Elassandra(Elasticsearch+Apache Cassandra)进行NBA球员数据探索
http://t.cn/RTkT7SV
3、如何使用kibana基于时间序列的Visual Builder展示数据
http://t.cn/RTkJX5s
4、Elastic Advent Calendar Day 22:忘记elastic密码的解决办法
http://t.cn/RTkWoRR
编辑:bsll
归档:https://elasticsearch.cn/article/430
订阅:https://tinyletter.com/elastic-daily
elastcsearch批量删除重复的document
Elasticsearch • guoyuan 回复了问题 • 4 人关注 • 3 个回复 • 5119 次浏览 • 2020-09-17 16:32
Elasticsearch 内存泄漏 oom 没有bulk输入
回复Elasticsearch • caomaocao 发起了问题 • 1 人关注 • 0 个回复 • 6657 次浏览 • 2017-12-22 18:15
Kafka0.8之后,consumer信息从zk迁移走,如何拿到consumer的信息
回复Kibana • chenze 发起了问题 • 1 人关注 • 0 个回复 • 2211 次浏览 • 2017-12-22 15:05
有没有创建kibana的index pattern的接口
Kibana • arterforyou 回复了问题 • 2 人关注 • 2 个回复 • 5566 次浏览 • 2018-01-18 17:29