# Unable to connect to elasticsearch via localhost:9200

**URL:** https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-via-localhost-9200/179498
**Category:** Elasticsearch
**Created:** [May 3, 2019, 8:39am UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-via-localhost-9200/179498 "2019-05-03T08:39:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Mhamed1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Mhamed1](https://discuss.elastic.co/u/Mhamed1)
#### Post date: [May 3, 2019, 8:39am UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-via-localhost-9200/179498/1 "2019-05-03T08:39:17Z")

</div>

So I downloaded the .zip file of Elasticsearch 7.0.1 and installed it !  
(I followed this tutorial: [https://www.youtube.com/watch?v=YE7AzSCC3E0&t=298s](https://www.youtube.com/watch?v=YE7AzSCC3E0&t=298s))  
The current problem is that I can't connect to the localhost!  
THANKS in advance!

---

<div class="post-metadata">

### Author: ![Mhamed1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Mhamed1](https://discuss.elastic.co/u/Mhamed1)
#### Post date: [May 3, 2019, 8:39am UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-via-localhost-9200/179498/2 "2019-05-03T08:39:48Z")

</div>

Log file:

[2019-05-03T09:33:55,401][INFO][o.e.e.NodeEnvironment] [SAMSUNG-PC] using [1] data paths, mounts [[(C:)]], net usable\_space [37.5gb], net total\_space [215.6gb], types [NTFS]  
[2019-05-03T09:33:55,416][INFO][o.e.e.NodeEnvironment] [SAMSUNG-PC] heap size [1007.3mb], compressed ordinary object pointers [true]  
[2019-05-03T09:33:55,444][INFO][o.e.n.Node] [SAMSUNG-PC] node name [SAMSUNG-PC], node ID [KvO3KMKbQu25fDuhbx1lTQ]  
[2019-05-03T09:33:55,446][INFO][o.e.n.Node] [SAMSUNG-PC] version[7.0.1], pid[668], build[default/zip/e4efcb5/2019-04-29T12:56:03.145736Z], OS[Windows 7/6.1/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0\_211/25.211-b12]  
[2019-05-03T09:33:55,448][INFO][o.e.n.Node] [SAMSUNG-PC] JVM home [C:\Program Files\Java\jdk1.8.0\_211\jre]  
[2019-05-03T09:33:55,450][INFO][o.e.n.Node] [SAMSUNG-PC] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=C:\Users\ADMINI~1\AppData\Local\Temp\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs\_err\_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Dio.netty.allocator.type=unpooled, -Delasticsearch, -Des.path.home=C:\Program Files\elasticsearch-7.0.1, -Des.path.conf=C:\Program Files\elasticsearch-7.0.1\config, -Des.distribution.flavor=default, -Des.distribution.type=zip, -Des.bundled\_jd=true]  
[2019-05-03T09:34:03,139][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [aggs-matrix-stats]  
[2019-05-03T09:34:03,141][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [analysis-common]  
[2019-05-03T09:34:03,143][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [ingest-common]  
[2019-05-03T09:34:03,145][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [ingest-geoip]  
[2019-05-03T09:34:03,148][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [ingest-user-agent]  
[2019-05-03T09:34:03,150][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [lang-expression]  
[2019-05-03T09:34:03,152][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [lang-mustache]  
[2019-05-03T09:34:03,153][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [lang-painless]  
[2019-05-03T09:34:03,156][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [mapper-extras]  
[2019-05-03T09:34:03,158][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [parent-join]  
[2019-05-03T09:34:03,159][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [percolator]  
[2019-05-03T09:34:03,162][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [rank-eval]  
[2019-05-03T09:34:03,166][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [reindex]  
[2019-05-03T09:34:03,168][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [repository-url]  
[2019-05-03T09:34:03,170][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [transport-netty4]  
[2019-05-03T09:34:03,172][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [x-pack-ccr]  
[2019-05-03T09:34:03,174][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [x-pack-core]  
[2019-05-03T09:34:03,176][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [x-pack-deprecation]  
[2019-05-03T09:34:03,178][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [x-pack-graph]  
[2019-05-03T09:34:03,179][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [x-pack-ilm]  
[2019-05-03T09:34:03,181][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [x-pack-logstash]  
[2019-05-03T09:34:03,183][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [x-pack-ml]  
[2019-05-03T09:34:03,185][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [x-pack-monitoring]  
[2019-05-03T09:34:03,187][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [x-pack-rollup]  
[2019-05-03T09:34:03,189][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [x-pack-security]  
[2019-05-03T09:34:03,191][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [x-pack-sql]  
[2019-05-03T09:34:03,193][INFO][o.e.p.PluginsService] [SAMSUNG-PC] loaded module [x-pack-watcher]  
[2019-05-03T09:34:03,195][INFO][o.e.p.PluginsService] [SAMSUNG-PC] no plugins loaded  
[2019-05-03T09:34:13,855][INFO][o.e.x.s.a.s.FileRolesStore] [SAMSUNG-PC] parsed [0] roles from file [C:\Program Files\elasticsearch-7.0.1\config\roles.yml]  
[2019-05-03T09:34:27,134][ERROR][o.e.b.Bootstrap] [SAMSUNG-PC] Exception  
org.elasticsearch.ElasticsearchException: Failed to create native process factories for Machine Learning  
at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:433) ~[?:?]  
at org.elasticsearch.node.Node.lambda$new$9(Node.java:438) ~[elasticsearch-7.0.1.jar:7.0.1]  
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267) ~[?:1.8.0\_211]  
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) ~[?:1.8.0\_211]  
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0\_211]  
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~

---

<div class="post-metadata">

### Author: ![Mhamed1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Mhamed1](https://discuss.elastic.co/u/Mhamed1)
#### Post date: [May 3, 2019, 8:40am UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-via-localhost-9200/179498/3 "2019-05-03T08:40:33Z")

</div>

[?:1.8.0\_211]  
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0\_211]  
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0\_211]  
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[?:1.8.0\_211]  
at org.elasticsearch.node.Node.(Node.java:441) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.node.Node.(Node.java:251) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:211) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:211) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:325) [elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) [elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) [elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-7.0.1.jar:7.0.1]  
at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) [elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-7.0.1.jar:7.0.1]  
Caused by: java.io.FileNotFoundException: \.\pipe\controller\_log\_668 (Le fichier spécifié est introuvable)  
at java.io.FileInputStream.open0(Native Method) ~[?:1.8.0\_211]  
at java.io.FileInputStream.open(FileInputStream.java:195) ~[?:1.8.0\_211]  
at java.io.FileInputStream.(FileInputStream.java:138) ~[?:1.8.0\_211]  
at java.io.FileInputStream.(FileInputStream.java:93) ~[?:1.8.0\_211]  
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(Native Method) ~[?:1.8.0\_211]  
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:61) ~[?:?]  
at org.elasticsearch.xpack.ml.process.NativeControllerHolder.getNativeController(NativeControllerHolder.java:40) ~[?:?]  
at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:418) ~[?:?]  
... 20 more  
[2019-05-03T09:34:27,170][WARN][o.e.b.ElasticsearchUncaughtExceptionHandler] [SAMSUNG-PC] uncaught exception in thread [main]  
org.elasticsearch.bootstrap.StartupException: ElasticsearchException[Failed to create native process factories for Machine Learning]; nested: FileNotFoundException[\.\pipe\controller\_log\_668 (Le fichier spécifié est introuvable)];  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-7.0.1.jar:7.0.1]  
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-7.0.1.jar:7.0.1]  
Caused by: org.elasticsearch.ElasticsearchException: Failed to create native process factories for Machine Learning  
at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:433) ~[?:?]  
at org.elasticsearch.node.Node.lambda$new$9(Node.java:438) ~[elasticsearch-7.0.1.jar:7.0.1]  
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267) ~[?:1.8.0\_211]  
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) ~[?:1.8.0\_211]  
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0\_211]  
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0\_211]  
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0\_211]  
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0\_211]  
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[?:1.8.0\_211]  
at org.elasticsearch.node.Node.(Node.java:441) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.node.Node.(Node.java:251) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:211) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:211) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:325) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.0.1.jar:7.0.1]  
... 6 more  
Caused by: java.io.FileNotFoundException: \.\pipe\controller\_log\_668 (Le fichier spécifié est introuvable)  
at java.io.FileInputStream.open0(Native Method) ~[?:1.8.0\_211]  
at java.io.FileInputStream.open(FileInputStream.java:195) ~[?:1.8.0\_211]  
at java.io.FileInputStream.(FileInputStream.java:138) ~[?:1.8.0\_211]  
at java.io.FileInputStream.(FileInputStream.java:93) ~[?:1.8.0\_211]  
at

---

<div class="post-metadata">

### Author: ![Mhamed1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Mhamed1](https://discuss.elastic.co/u/Mhamed1)
#### Post date: [May 3, 2019, 8:42am UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-via-localhost-9200/179498/4 "2019-05-03T08:42:59Z")

</div>

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(Native Method) ~[?:1.8.0\_211]  
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:61) ~[?:?]  
at org.elasticsearch.xpack.ml.process.NativeControllerHolder.getNativeController(NativeControllerHolder.java:40) ~[?:?]  
at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:418) ~[?:?]  
at org.elasticsearch.node.Node.lambda$new$9(Node.java:438) ~[elasticsearch-7.0.1.jar:7.0.1]  
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267) ~[?:1.8.0\_211]  
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) ~[?:1.8.0\_211]  
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0\_211]  
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0\_211]  
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0\_211]  
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0\_211]  
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[?:1.8.0\_211]  
at org.elasticsearch.node.Node.(Node.java:441) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.node.Node.(Node.java:251) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:211) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:211) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:325) ~[elasticsearch-7.0.1.jar:7.0.1]  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.0.1.jar:7.0.1]  
... 6 more

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 31, 2019, 8:43am UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-via-localhost-9200/179498/5 "2019-05-31T08:43:01Z")

</div>

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