gpt4 book ai didi

elasticsearch - Elasticsearch ActiveMQ River配置

转载 作者:行者123 更新时间:2023-12-03 02:09:47 25 4
gpt4 key购买 nike

我开始配置ActiveMQ河,我已经安装了(ActiveMQ plugin),但是我对如何使其工作感到困惑,文档如此简短,实际上,我完全按照创建新河的步骤进行操作,但是我没有不知道要遵循以下哪些步骤?

注意:

  • 我已经启动并运行了ActiveMQ服务器,并使用
    简单的JMS应用程序将消息推送到队列中。
  • 我使用以下命令创建了一条新河:
    curl -XPUT 'localhost:9200/_river/myindex_river/_meta' -d '{
    "type" : "activemq",
    "activemq" : {
    "user" : "guest",
    "pass" : "guest",
    "brokerUrl" : "failover://tcp://localhost:61616",
    "sourceType" : "queue",
    "sourceName" : "elasticsearch",
    "consumerName" : "activemq_elasticsearch_river_myindex_river",
    "durable" : false,
    "filter" : ""
    },
    "index" : {
    "bulk_size" : 100,
    "bulk_timeout" : "10ms"
    }
    }'
  • 创建上一条河之后,可以使用以下命令获取其状态curl -XGET 'localhost:9200/my_index/_status',它给我索引
    状态,而不是创建的河流。

  • 请提供任何帮助,让我通过Elasticsearch使ActiveMQ河配置正确。

    最佳答案

    我在邮件列表上告诉过你。定义index.index值或将河流的名称设置为索引名称(更容易):

    curl -XPUT 'localhost:9200/_river/my_index/_meta' -d '
    {
    "type":"activemq",
    "activemq":{
    "user":"guest",
    "pass":"guest",
    "brokerUrl":"failover://tcp://localhost:61616",
    "sourceType":"queue",
    "sourceName":"elasticsearch",
    "consumerName":"activemq_elasticsearch_river_myindex_river",
    "durable":false,
    "filter":""
    },
    "index":{
    "bulk_size":100,
    "bulk_timeout":"10ms"
    }
    }'

    要么
    curl -XPUT 'localhost:9200/_river/myindex_river/_meta' -d '
    {
    "type":"activemq",
    "activemq":{
    "user":"guest",
    "pass":"guest",
    "brokerUrl":"failover://tcp://localhost:61616",
    "sourceType":"queue",
    "sourceName":"elasticsearch",
    "consumerName":"activemq_elasticsearch_river_myindex_river",
    "durable":false,
    "filter":""
    },
    "index":{
    "index":"my_index",
    "bulk_size":100,
    "bulk_timeout":"10ms"
    }
    }'

    应该会有所帮助。

    如果不是,请使用在日志中看到的内容来更新您的问题。

    关于elasticsearch - Elasticsearch ActiveMQ River配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16039700/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com