es: 7.12
os:CentOS7
java : java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.282.b08-1.el7_9.x86_64/jre/bin/java)
My cluster used to had 2 node,
this node as : master
another node as : data-1
.
I decide to make it as single node again so I shut data-1
.
I reconfigure elasticsearch.yml
on master
to make it as default ,
but when I try to rune the previously master
node it returning
{"statusCode":503,"error":"Service Unavailable","message":"License is not available."}
my log
journalctl --unit elasticsearch
Mar 25 13:33:56 localhost.localdomain systemd[1]: Starting Elasticsearch...
Mar 25 13:33:58 localhost.localdomain systemd-entrypoint[2952]: Exception in thread "main" java.lang.RuntimeException: starting java failed with [1]
Mar 25 13:33:58 localhost.localdomain systemd-entrypoint[2952]: output:
Mar 25 13:33:58 localhost.localdomain systemd-entrypoint[2952]: error:
Mar 25 13:33:58 localhost.localdomain systemd-entrypoint[2952]: Unrecognized VM option 'UseConcMarkSweepGC'
Mar 25 13:33:58 localhost.localdomain systemd-entrypoint[2952]: Error: Could not create the Java Virtual Machine.
Mar 25 13:33:58 localhost.localdomain systemd-entrypoint[2952]: Error: A fatal exception has occurred. Program will exit.
Mar 25 13:33:58 localhost.localdomain systemd-entrypoint[2952]: at org.elasticsearch.tools.launchers.JvmOption.flagsFinal(JvmOption.java:119)
Mar 25 13:33:58 localhost.localdomain systemd-entrypoint[2952]: at org.elasticsearch.tools.launchers.JvmOption.findFinalOptions(JvmOption.java:81)
Mar 25 13:33:58 localhost.localdomain systemd-entrypoint[2952]: at org.elasticsearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:38)
Mar 25 13:33:58 localhost.localdomain systemd-entrypoint[2952]: at org.elasticsearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:135)
Mar 25 13:33:58 localhost.localdomain systemd-entrypoint[2952]: at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:86)
Mar 25 13:33:58 localhost.localdomain systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Mar 25 13:33:58 localhost.localdomain systemd[1]: Failed to start Elasticsearch.
I've tried some solution here solutions from github, https://discuss.elastic.co/t/elasticsearch-wont-start-after-7-9-1-to-7-9-2-upgrade/249878/2
8-13:-XX:+UseConcMarkSweepGC
8-13:-XX:CMSInitiatingOccupancyFraction=75
8-13:-XX:+UseCMSInitiatingOccupancyOnly
not working,
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
not working
#-XX:+UseConcMarkSweepGC
#-XX:CMSInitiatingOccupancyFraction=75
#-XX:+UseCMSInitiatingOccupancyOnly
not working either
any suggestion will be appreciated