1、user_id聚合查询异常(fielddata=true)
curl -H "Content-Type: application/json" -XPUT 'localhost:9200/_index/_doc/_mapping' -d '
{
"properties": {
"user_id":{
"type": "text",
"fielddata": true
}
}
}'
2、只读异常([FORBIDDEN/12/index read-only / allow delete (api)])
curl -H "Content-Type: application/json" -XPUT 'localhost:9200/_all/_settings/' -d '
{
"index.blocks.read_only_allow_delete": null
}'
3、报错can't dup Fixnum
Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create<main>, action_result: false", :backtrace=>nil}
这有可能是因为tracking_column之前按照numeric运行,后来改成timestamp,检查last_run_metadata_path,默认路径$HOME/.logstash_jdbc_last_run,如果是因为以上原因,删除即可