package logstash-1:7.7.1-1.noarch is already installed
Uninstall reinstall
1. Query installation records
rpm -qa |grep logstash
2. Unload query results
yum -y remove logstash-7.7.1-1.noarch
3. Reinstall
rpm --install logstash-7.7.1.rpm
package logstash-1:7.7.1-1.noarch is already installed
Uninstall reinstall
1. Query installation records
rpm -qa |grep logstash
2. Unload query results
yum -y remove logstash-7.7.1-1.noarch
3. Reinstall
rpm --install logstash-7.7.1.rpm
The error reports are as follows:
error reason analysis:
literally means that the user name and password authentication are missing, so the database cannot be accessed
solution steps:
1 Add the user name and password to the configuration file connecting to mogondb
run the program again
over
Es reports an error when executing aggregate query: alternately, set fielddata = true on
GET /megacorp/employee/_search
{
"aggs": {
"all_interests": {
"terms": { "field": "interests" }
}
}
}
Execute the following command to start fielddata
PUT /your_index_name/_mapping?pretty
{
"properties": {
"your_field_name": {
"type": "text",
"fielddata": true
}
}
}
Question
Problem analysis
It is known from the problem description that memory es overflow causes
Solution:
The XMS and Xmx memory of ES is increased
ES_JAVA_OPTS=-Xms4g -Xmx4g