接口

微博(索引名称、分片名称):weibo_articles_and_weiboersweibo_articles_and_weiboer

微信(索引名称、分片名称):weixin_articles_and_weixinersweixin_articles_and_weixiner

头条(索引名称、分片名称):toutiao_articles_and_userstoutiao_articles_and_users

百度新闻(索引名称、分片名称):baidunews_newsbaidunews_news

知乎问答(索引名称、分片名称):zhihu_questionszhihu_questions

科技资讯(索引名称、分片名称):tech_news分片参考

搜狗微信文章(索引名称、分片名称):sogou_weixin_articlessogou_weixin_articles

POST 请求写入数据到 kafka

POST http://127.0.0.1/stq/api/v1/pa/xxx/add

HEADERS"Content-Type" => "application/json"

BODY 体参数说明:List 集合、数组

[
    {
      "id": "10",
      "index_name": "xxx",
      "type_name": "xxx",
      ...
    },
    {
      "id": "11",
      "index_name": "xxx",
      "type_name": "xxx",
      ...
    }
]

logstash 消费kafka中的数据到 elasticsearch

...

kafka 队列中读取的数据,两条符合预期(index_nametype_nameid会在logstash filter中处理后移除,保存或者更新数据到 es

{
    "avatar_img" => "xxx",
          "name" => "xxx"
}
{
    "avatar_img" => "xxx",
          "name" => "xxx"
}

results matching ""

    No results matching ""