Hi,
I have some difficulties when I run the elasticsearch on Windows. I wonder if you could help me in this process to solve the error.
My Java version is: java version "1.8.0_271"
I installed elasticsearch, successfully using .msi package GUI. I used the basic License of it. I'm using the elasticsearch for education as well. the curl was also installed.
In addition, I run the elasticsearch by the .\bin\elasticsearch and I got the following message in my Command Prompt:
Elasticsearch is already running as a service and currently: Running.
I opened localhost:9200 and I saw the elasticsearch is running.
When I want to follow along with the Getting Started Guide, for the first command related to Cluster Health I receive the following message shows it doesn't work properly:
{
"error" : {
"root_cause" : [
{
"type" : "security_exception",
"reason" : "missing authentication credentials for REST request [/_cat/health?v=true&pretty]",
"header" : {
"WWW-Authenticate" : "Basic realm=\"security\" charset=\"UTF-8\""
}
}
],
"type" : "security_exception",
"reason" : "missing authentication credentials for REST request [/_cat/health?v=true&pretty]",
"header" : {
"WWW-Authenticate" : "Basic realm=\"security\" charset=\"UTF-8\""
}
},
"status" : 401
}
C:\>curl -X<VERB> '<PROTOCOL>://<HOST>:<PORT>/<PATH>?<QUERY_STRING>' -d '<BODY>'
The system cannot find the file specified.