Hello,
I'm trying to setup environment for contribution into the project. I was able to run Elasticsearch from sources by running:
./gradlew run
I verified that the server is up and running by:
curl -u elastic:password "http://localhost:9200"
Here is the response:
{
"name" : "runTask-0",
"cluster_name" : "runTask",
"cluster_uuid" : "dJfGG-pNScCtiSYbVpat0g",
"version" : {
"number" : "9.1.0-SNAPSHOT",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "c59406723deef99b9f78aba1935a100465486ef0",
"build_date" : "2025-02-07T19:58:50.087143Z",
"build_snapshot" : true,
"lucene_version" : "10.1.0",
"minimum_wire_compatibility_version" : "8.19.0",
"minimum_index_compatibility_version" : "8.0.0"
},
"tagline" : "You Know, for Search"
}
Then I run kibana inside docker container by
Then once I open Kibana in browser it asks enrollment tocken. But I don't see it in Elasticsearch logs.
I tried to use "Configure manually" button and put there http://localhost:9200
but connection refused. Logs from Kibana:
[ERROR][plugins.interactiveSetup.elasticsearch] Unable to connect to host "http://localhost:9200": connect ECONNREFUSED 127.0.0.1:9200
When I tried to run:
curl -u elastic:password "http://localhost:9200/_security/enroll/kibana"
The response is:
{"error":{"root_cause":[{"type":"security_exception","reason":"Enrollment mode is not enabled. Set [xpack.security.enrollment.enabled] to true, in order to use this API."}],"type":"security_exception","reason":"Enrollment mode is not enabled. Set [xpack.security.enrollment.enabled] to true, in order to use this API."},"status":403}
Could someone support me on setting local dev env to have Elasticsearch run from source code and Kibana (may be there is better way other than from docker) connected to this local instance of Elasticsearch?
Really appreciate any help!