but when it comes to generate the passwords I am met with error:
ubuntu@ip-10:~$ sudo /usr/share/elasticsearch/bin/x-pack/setup-passwords interactive
Unexpected response code [404] from calling GET http://127.0.0.1:9200/_xpack/security/_authenticate?pretty
Possible causes include:
* The relative path of the URL is incorrect. Is there a proxy in-between?
* The protocol (http/https) does not match the port.
* Is this really an Elasticsearch server?
ERROR: Uknown error
ubuntu@ip-10:~$ curl http://127.0.0.1:9200/_xpack/security/_authenticate?pretty
{
"error" : {
"root_cause" : [
{
"type" : "index_not_found_exception",
"reason" : "no such index",
"resource.type" : "index_expression",
"resource.id" : "_xpack",
"index_uuid" : "_na_",
"index" : "_xpack"
}
],
"type" : "index_not_found_exception",
"reason" : "no such index",
"resource.type" : "index_expression",
"resource.id" : "_xpack",
"index_uuid" : "_na_",
"index" : "_xpack"
},
"status" : 404
}
I added the below to my Elasticsearch.yml, hoping to resolve the issues:
action.auto_create_index: .security,.monitoring*,.watches,.triggered_watches,.watcher-history*,.ml*,_,.
xpack.license.self_generated.type: basic
I then uninstalled x-pack with the purge option and re installed it again, with the same results
the indices do not seem to be created:
ubuntu@ip-10:~$ curl http://localhost:9200/_cat/indices?v
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open .kibana okhgXcGATfevshyWItKFYA 1 1 2 1 13.6kb 13.6kb
yellow open logstash-2017.12.12 _H_BED7-QsW9wuu0y9FBUA 5 1 370 0 688.7kb 688.7kb
This is almost certainly the cause of your problem.
Check the output of these two commands, but I expect to find security is not enabled, because you have a Basic license installed, which does not include support for security.
As mentioned before, Security is not a feature that is included in the Basic license, so generating passwords is not applicable. setup-passwords is a CLI tool for setting passwords for the X-Pack Security built-in users.
Do you have additional issues with your installation that are relevant to this ?
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.