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