Elasticsearch errors while running

After downloading and extracting the zip file, I tried to run the bat file. Now it is showing this error. I am kind of not able to figure this out. I checked the logs this is what it displays.
Elasticsearch version : 7.2.2
Plugins installed : None
OS : Windows 8.1 Pro 64-bit(6.3, Build 9600)
JAVA_VERSION="12.0.1"
I have not done any non-default configuration settings.

Caused by: org.elasticsearch.ElasticsearchException: Failed to create native process factories for Machine Learning
at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:455) ~[?:?]
at org.elasticsearch.node.Node.lambda$new$9(Node.java:438) ~[elasticsearch-7.2.0.jar:7.2.0]
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) ~[?:?]
at org.elasticsearch.node.Node.(Node.java:441) ~[elasticsearch-7.2.0.jar:7.2.0]
at org.elasticsearch.node.Node.(Node.java:251) ~[elasticsearch-7.2.0.jar:7.2.0]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:221) ~[elasticsearch-7.2.0.jar:7.2.0]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:221) ~[elasticsearch-7.2.0.jar:7.2.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:349) ~[elasticsearch-7.2.0.jar:7.2.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.2.0.jar:7.2.0]
... 6 more
Caused by: java.io.FileNotFoundException: \.\pipe\controller_log_528 (The system cannot find the file specified)
at java.io.FileInputStream.open0(Native Method) ~[?:?]
at java.io.FileInputStream.open(FileInputStream.java:213) ~[?:?]
at java.io.FileInputStream.(FileInputStream.java:155) ~[?:?]
at java.io.FileInputStream.(FileInputStream.java:110) ~[?:?]
at org.elasticsearch.xpack.ml.utils.NamedPipeHelper$PrivilegedInputPipeOpener.run(NamedPipeHelper.java:288) ~[?:?]
at org.elasticsearch.xpack.ml.utils.NamedPipeHelper$PrivilegedInputPipeOpener.run(NamedPipeHelper.java:277) ~[?:?]
at java.security.AccessController.doPrivileged(AccessController.java:310) ~[?:?]
at org.elasticsearch.xpack.ml.utils.NamedPipeHelper.openNamedPipeInputStream(NamedPipeHelper.java:130) ~[?:?]
at org.elasticsearch.xpack.ml.utils.NamedPipeHelper.openNamedPipeInputStream(NamedPipeHelper.java:97) ~[?:?]
at org.elasticsearch.xpack.ml.process.ProcessPipes.connectStreams(ProcessPipes.java:131) ~[?:?]
at org.elasticsearch.xpack.ml.process.NativeController.(NativeController.java:62) ~[?:?]
at org.elasticsearch.xpack.ml.process.NativeControllerHolder.getNativeController(NativeControllerHolder.java:40) ~[?:?]
at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:440) ~[?:?]
at org.elasticsearch.node.Node.lambda$new$9(Node.java:438) ~[elasticsearch-7.2.0.jar:7.2.0]
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) ~[?:?]
at org.elasticsearch.node.Node.(Node.java:441) ~[elasticsearch-7.2.0.jar:7.2.0]
at org.elasticsearch.node.Node.(Node.java:251) ~[elasticsearch-7.2.0.jar:7.2.0]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:221) ~[elasticsearch-7.2.0.jar:7.2.0]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:221) ~[elasticsearch-7.2.0.jar:7.2.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:349) ~[elasticsearch-7.2.0.jar:7.2.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.2.0.jar:7.2.0]
... 6 more

Please do not just provide a stack trace and expect help. Provide some information around how you got this error, e.g. how you installed it, what platform and operating system it is running on and any non-default configuration you may have applied.

If you can not spend the time to add useful information and context, why should anyone spend their time trying to help you based on the little information available? This forum is manned by volunteers, so the more information and structure you provide, the better the chance of getting help.

Thanks Christian. I have edited it. I am new to this platform and want to learn by applying,but these errors I am not able to figure out.

Which OS? What platform? Any non-default configuration settings?

I have deployed elastic search as a container using docker-compose file on ubuntu 18.04. Here is my compose file
version: '2.2'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.0.1
container_name: es01
environment:
- node.name=10.x.x.01
- discovery.seed_hosts=10.x.x.02
- discovery.zen.minimum_master_nodes=2
- cluster.initial_master_nodes=10.x.x.01,10.x.x.02
- cluster.name=docker-cluster
- node.master=true
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata01:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
- esnet
volumes:
esdata01:
driver: local
networks:
esnet:

docker container is created and working fine but cluster is not created. when check state of cluster i got an error

{
"error" : {
"root_cause" : [
{
"type" : "master_not_discovered_exception",
"reason" : null
}
],
"type" : "master_not_discovered_exception",
"reason" : null
},
"status" : 503
}

could you please help me out from this
Thanks in advance

You're starting only one node but ask for 2 master nodes so that can't work.

okay. but i want cluster with 2 nodes

thank you @dadoonet cluster is created now. i have created one more compose file for elasticsearch in node 2 and want to add that to cluster.
this is my compose file
version: '2.2'
services:
es02:
image: docker.elastic.co/elasticsearch/elasticsearch:7.0.1
container_name: es02
environment:
- node.name=10.x.x.02
- discovery.seed_hosts=10.x.x.01
#- discovery.zen.minimum_master_nodes=2
- cluster.initial_master_nodes=10.x.x.01,10.x.x.02
- cluster.name=docker-cluster
#- node.master=true
- bootstrap.memory_lock=true
#- bootstrap.system_call_filter: false
#- http.cors.enabled=true
#- http.cors.allow-origin=*
#- transport.profiles.default.port=9300
#- transport.tcp.port=9300
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=10.x.x.01:9200"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata02:/usr/share/elasticsearch/data

ports:

  #- 9200:9200
  #- 9300:9300
networks:
  - esnet

volumes:
esdata02:
driver: local
networks:
esnet:

when i run docker-compose up i got following error
message": "Native controller process has stopped - no new native processes can be started"

Thanks in advance

HI, I have edited. Please help me with this issue

Why does the stack trace say version 7.2 when your docket file launches 7.0?

@dadoonet please help me out from this issue. what mistake i made in compose file for elasticsearch in node 2 to add to cluster in node 1.

It is 7.2.0.

Read this and specifically the "Also be patient" part.

It's fine to answer on your own thread after 2 or 3 days (not including weekends) if you don't have an answer.

So what is the complete and exact docker-compose file you are using?

Please read this about how to format.

elk:

  image: elasticsearch:latest

  ports:    
    - " 127.0.0.1:9200:9200"
    - "9300:9300"

  volumes:
    - ./Elasticsearch/data:/var/lib/elasticsearch
    - ./Elasticsearch/config/elasticsearch.yml:/etc/elasticsearch/config/elasticsearch.yml

  tty : true

Redis:
  image: redis:latest

  ports:
    - "6379:6379"

  volumes:
    - /Redis/redis.conf:/var/lib/redis

  restart: always`

When I run it I have:

ERROR: The Compose file './docker-compose.yml' is invalid because:
elk.ports is invalid: Invalid port " 127.0.0.1:9200:9200", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol]

When I then fix the space, I have:

Pulling elk (elasticsearch:latest)...
ERROR: manifest for elasticsearch:latest not found

See: Elasticsearch 7.2.0 - Unable to run xpack ml libraries

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.