root@k8smaster elastic]# ku logs quickstart-es-ingest-data-0 -n eckcluster
Exception in thread "main" SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: IllegalStateException[only value lists are allowed in serialized settings];
at org.elasticsearch.common.settings.Settings$Builder.loadFromStream(Settings.java:1100)
Can anyone please help find the error , this is my yaml file
This manifest doesn't seem to be complete. It is missing a few important fields like apiVersion and version and seems to be invalid because there are no master nodes configured at all. Please paste the full manifest and we can take a look. You can surround the text with ``` to format it properly.
There are no obvious problems with the config. I was able to create a cluster successfully using your manifest. What are the outputs of the following commands?
kubectl get elasticsearch quickstart
kubectl get pods -l elasticsearch.k8s.elastic.co/cluster-name=quickstart
Thank you for reply. However, the same error still persists.
I have used Elastic 7.9.0 this time with 2 data nodes.
[root@k8smaster elastic]# kubectl get pods -n ec
NAME READY STATUS RESTARTS AGE
quickstart-es-ingest-data-0 0/1 CrashLoopBackOff 7 12m
quickstart-es-ingest-data-1 0/1 CrashLoopBackOff 7 12m
quickstart-es-master-0 1/1 Running 0 12m
[root@k8smaster elastic]# kubectl get elasticsearch quickstart
Error from server (NotFound): elasticsearches.elasticsearch.k8s.elastic.co "quickstart" not found
[root@k8smaster elastic]# kubectl get pods -l elasticsearch.k8s.elastic.co/cluster-name=quickstart
No resources found in default namespace.
[root@k8smaster elastic]# kubectl describe sts quickstart-es-ingest-data
Error from server (NotFound): statefulsets.apps "quickstart-es-ingest-data" not found
[root@k8smaster elastic]# kubectl logs quickstart-es-ingest-data-0
Error from server (NotFound): pods "quickstart-es-ingest-data-0" not found
[root@k8smaster elastic]#
Error:
root@k8smaster elastic]# ku logs quickstart-es-ingest-data-0 -n ec
Exception in thread "main" SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: IllegalStateException[only value lists are allowed in serialized settings];
at org.elasticsearch.common.settings.Settings$Builder.loadFromStream(Settings.java:1100)
at org.elasticsearch.common.settings.Settings$Builder.loadFromPath(Settings.java:1073)
It's very difficult to decipher this because it's not properly formatted (you can use triple backticks (```) as in Markdown to format it). The reason formatting is important is because it is YAML and spacing is significant.
I see a podTemplate definition amongst the contents of elasticsearch.yml. it shouldn't be there at all. My hunch is that in your Elasticsearch manifest, you have used the wrong spacing -- causing the podTemplate definition to become part of the config field. This explains the problem because Elasticsearch is seeing an invalid configuration file. Please correct the spacing in your manifest and the problem should go away.
You spotted correctly !! Thanks. I could get the yaml working, however the data pod is in pending state. I am debugging and will reach out to you if I need further help.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.