Hi there
I'm upgrading Elasticsearch, Kibana and Filebeat to their respective latest versions, starting with Elasticsearch. I took a backup of all the indices before starting. This is a single node in a dev environment. There's no other nodes.
I've attempted to upgrade Elasticsearch 6.0.1 to 6.8 and then finally to 7.6.2
I attempt to start elasticsearch using the below:
systemctl start elasticsearch.service
No error output is written to /var/log/elasticsearch/elasticsearch.log, however I can see the below output with
journalctl -u elasticsearch.service
May 11 21:39:42 systemd[1]: Starting Elasticsearch...
May 11 21:39:43 elasticsearch[1801]: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
May 11 21:39:45 elasticsearch[1801]: Exception in thread "main" java.lang.NoSuchFieldError: LUCENE_6_0_0
May 11 21:39:45 elasticsearch[1801]: at org.elasticsearch.Version.<clinit>(Version.java:39)
May 11 21:39:45 elasticsearch[1801]: at org.elasticsearch.common.io.stream.StreamOutput.<init>(StreamOutput.java:76)
May 11 21:39:45 elasticsearch[1801]: at org.elasticsearch.common.io.stream.BytesStream.<init>(BytesStream.java:24)
May 11 21:39:45 elasticsearch[1801]: at org.elasticsearch.common.io.stream.BytesStreamOutput.<init>(BytesStreamOutput.java:59)
May 11 21:39:45 elasticsearch[1801]: at org.elasticsearch.common.io.stream.BytesStreamOutput.<init>(BytesStreamOutput.java:56)
May 11 21:39:45 elasticsearch[1801]: at org.elasticsearch.common.io.stream.BytesStreamOutput.<init>(BytesStreamOutput.java:46)
May 11 21:39:45 elasticsearch[1801]: at org.elasticsearch.common.xcontent.XContentBuilder.builder(XContentBuilder.java:69)
May 11 21:39:45 elasticsearch[1801]: at org.elasticsearch.common.settings.Setting.arrayToParsableString(Setting.java:1049)
May 11 21:39:45 elasticsearch[1801]: at org.elasticsearch.common.settings.Setting.access$600(Setting.java:81)
May 11 21:39:45 elasticsearch[1801]: at org.elasticsearch.common.settings.Setting$ListSetting.lambda$new$0(Setting.java:757)
May 11 21:39:45 elasticsearch[1801]: at org.elasticsearch.common.settings.Setting$ListSetting.getRaw(Setting.java:765)
May 11 21:39:45 elasticsearch[1801]: at org.elasticsearch.common.settings.Setting.get(Setting.java:350)
May 11 21:39:45 elasticsearch[1801]: at org.elasticsearch.common.settings.Setting.get(Setting.java:346)
May 11 21:39:45 systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
May 11 21:39:45 systemd[1]: Failed to start Elasticsearch.
May 11 21:39:45 systemd[1]: Unit elasticsearch.service entered failed state.
May 11 21:39:45 systemd[1]: elasticsearch.service failed.
Other info:
yum info elasticsearch
Installed Packages
Name : elasticsearch
Arch : x86_64
Version : 7.6.2
Release : 1
Size : 475 M
Repo : installed
From repo : elasticsearch
Summary : Distributed RESTful search engine built for the cloud
URL : https://www.elastic.co/
License : Elastic License
Description : Reference documentation can be found at
: https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html
: and the 'Elasticsearch: The Definitive Guide' book can be found at
: https://www.elastic.co/guide/en/elasticsearch/guide/current/index.html
/etc/elasticsearch/elasticsearch.yml
# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
# Before you set out to tweak and tune the configuration, make sure you
# understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please consult the documentation for further information on configuration options:
# https://www.elastic.co/guide/en/elasticsearch/reference/index.html
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
#cluster.name: my-application
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
#node.name: node-1
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /var/lib/elasticsearch
#
# Path to log files:
#
path.logs: /var/log/elasticsearch
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
#network.host: 192.168.0.1
#
# Set a custom port for HTTP:
#
#http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
#discovery.seed_hosts: ["host1", "host2"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
#cluster.initial_master_nodes: ["node-1", "node-2"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
#gateway.recover_after_nodes: 3
#
# For more information, consult the gateway module documentation.
#
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true