localstack 中的 ElasticSearch 是否支持 Data Streams?
Does ElasticSearch in localstack support Data Streams?
我是 运行 localstack,ElasticSearch 的最新版本是 7.7.0
当前,当创建数据流时我遇到了错误。
"error" : "Incorrect HTTP method for uri [/_index_template/my-datastream?pretty] and method [PUT], allowed: [POST]",
这是卷曲(为了简单起见,映射被替换为点):
curl -X PUT "localhost:4571/_index_template/my-datastream?pretty" -H 'Content-Type: application/json' -d'
{
"index_patterns": [
"audit-datastream*"
],
"template": {
"settings": {
"index": {
"lifecycle": {
"name": "my-policy"
},
"number_of_shards": "3",
"number_of_replicas": "1"
}
},
"mappings": {
"dynamic_templates": [
{
.....
}
]
}
},
"priority": 500,
"version": 1,
"data_stream": {}
}
'
7.9 中添加了数据流 - https://www.elastic.co/guide/en/elasticsearch/reference/7.9/data-streams.html
ps - 这是 Elasticsearch,不是 ElasticSearch ;)
我是 运行 localstack,ElasticSearch 的最新版本是 7.7.0
当前,当创建数据流时我遇到了错误。
"error" : "Incorrect HTTP method for uri [/_index_template/my-datastream?pretty] and method [PUT], allowed: [POST]",
这是卷曲(为了简单起见,映射被替换为点):
curl -X PUT "localhost:4571/_index_template/my-datastream?pretty" -H 'Content-Type: application/json' -d'
{
"index_patterns": [
"audit-datastream*"
],
"template": {
"settings": {
"index": {
"lifecycle": {
"name": "my-policy"
},
"number_of_shards": "3",
"number_of_replicas": "1"
}
},
"mappings": {
"dynamic_templates": [
{
.....
}
]
}
},
"priority": 500,
"version": 1,
"data_stream": {}
}
'
7.9 中添加了数据流 - https://www.elastic.co/guide/en/elasticsearch/reference/7.9/data-streams.html
ps - 这是 Elasticsearch,不是 ElasticSearch ;)