Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ember.js/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<img src="//i.stack.imgur.com/RUiNP.png" height="16" width="18" alt="" class="sponsor tag img">elasticsearch Elasticsearch ActiveMQ河配置_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Activemq - Fatal编程技术网 elasticsearch Elasticsearch ActiveMQ河配置,elasticsearch,activemq,elasticsearch,Activemq" /> elasticsearch Elasticsearch ActiveMQ河配置,elasticsearch,activemq,elasticsearch,Activemq" />

elasticsearch Elasticsearch ActiveMQ河配置

elasticsearch Elasticsearch ActiveMQ河配置,elasticsearch,activemq,elasticsearch,Activemq,我开始配置ActiveMQ river,我已经安装了(),但我对如何使其工作感到困惑,文档非常简短,实际上,我完全按照创建新river的步骤进行操作,但我不知道接下来要执行哪些步骤 注意: 我已经启动并运行了ActiveMQ服务器,并使用 将消息推送到队列中的简单JMS应用程序 我使用以下方法创建了一条新河: curl -XPUT 'localhost:9200/_river/myindex_river/_meta' -d '{ "type" : "activemq", "activem

我开始配置ActiveMQ river,我已经安装了(),但我对如何使其工作感到困惑,文档非常简短,实际上,我完全按照创建新river的步骤进行操作,但我不知道接下来要执行哪些步骤

注意:

  • 我已经启动并运行了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\u index/\u status'
    ,它会给我索引 状态,而不是创建的河流


  • 请帮助我找到使用elasticsearch的ActiveMQ river配置的正确路径。

    我在邮件列表中告诉过你。定义
    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"
      }
    }'