我想在mac os上使用elasticsearch 6,但是当我通过将文档添加到无存在索引来创建索引后,几秒钟索引更改为只读,如果添加文档或更新文档会出现此错误
"error" : {
"root_cause" : [
{
"type" : "cluster_block_exception",
"reason" : "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
}
],
"type" : "cluster_block_exception",
"reason" : "blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
},
"status" : 403
}
Run Code Online (Sandbox Code Playgroud)
我测试禁用只读
curl -H'Content-Type: application/json' -XPUT localhost:9200/test/_settings?pretty -d'
{
"index": {
"blocks.read_only": false
}
}'
{
"acknowledged" : true
}
Run Code Online (Sandbox Code Playgroud)
但没有变化
我用ubuntu测试另一个系统上的弹性6是没关系然后没有错误我想我的系统可能有问题但弹性搜索5.6.2没有任何错误
弹性日志是
[2018-01-05T21:56:52,254][WARN ][o.e.c.r.a.DiskThresholdMonitor] [gCjouly] flood stage disk watermark [95%] exceeded on [gCjoulysTFy1DDU7f7dOWQ][gCjouly][/Users/peter/Downloads/elasticsearch-6.1.1/data/nodes/0] free: 15.7gb[3.3%], all indices …Run Code Online (Sandbox Code Playgroud) 我想在反应路由器 6 中,当没有插座时显示一个占位符。有什么办法吗?
<>
<Grid item xs={12} sm={2} style={{backgroundColor: '#aaa'}}>
<Button onClick={() => this.props.navigate('next')} variant='contained'>next</Button>
<Button onClick={() => this.props.navigate(-1)} variant='contained'>back</Button>
</Grid>
<Outlet/>
</>
Run Code Online (Sandbox Code Playgroud)