# Running ES on Windows 8

**URL:** <https://discuss.elastic.co/t/running-es-on-windows-8/50800>\
**Category:** Elasticsearch\
**Created:** [May 24, 2016, 8:13am UTC](https://discuss.elastic.co/t/running-es-on-windows-8/50800 "2016-05-24T08:13:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![croffler](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@croffler](https://discuss.elastic.co/u/croffler)\
**Post date:** [May 24, 2016, 8:13am UTC](https://discuss.elastic.co/t/running-es-on-windows-8/50800/1 "2016-05-24T08:13:41Z")

</div>

I am trying to start the latest ES 2.3.3 on Windows 8.

Getting the following Exception:

## [2016-05-24 11:08:43,743][WARN][transport.netty] [Vengeance] exception caught on transport layer [[id: 0xa6dbecd0, /0:0:0:0:0:0:0:1:55324 =\> /0:0:0:0:0:0:0:1:9300]], closing connection java.lang.NullPointerException at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:207) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:202) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) [2016-05-24 11:08:45,256][INFO][cluster.service] [Vengeance] new\_master {Vengeance}{FmIy1P1ARtKZWgxgA74Y2A}{10.127.127.1}{admin/10.127.127.1:9301}, reason: zen-disco-join(elected\_as\_master, [0] joins received) [2016-05-24 11:08:45,328][INFO][http] [Vengeance] publish\_address {admin/10.127.127.1:9201}, bound\_addresses {127.0.0.1:9201}, {[::1]:9201}, {172.20.2.225:9201}, {[fe80::7431:36a:1d1f:81f]:9201}, {[fe80::8c7 [2016-05-24 11:08:45,328][INFO][node] [Vengeance] started [2016-05-24 11:08:45,366][INFO][gateway] [Vengeance] recovered [0] indices into cluster\_state

When trying to run curl I get this :

C:\tools\curl\>curl 'localhost:9200/\_cat/health?v'  
curl: (6) Could not resolve host: 'localhost

elasticsearch.yml has the following entry:

network.host: 127.0.0.1,localhost,admin

What needs to be configured in order to get this to work ?

---

<div class="post-metadata">

**Author:** ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Post date:** [May 26, 2016, 1:27am UTC](https://discuss.elastic.co/t/running-es-on-windows-8/50800/2 "2016-05-26T01:27:08Z")

</div>

From the error below, it looks like the name resolving is not working.  
Try editing hosts file on windows.

> [@croffler](#):
>
> C:\tools\curl\>curl 'localhost:9200/\_cat/health?v'curl: (6) Could not resolve host: 'localhost

Hosts file:

> C:\Windows\System32\drivers\etc\hosts

> 127.0.0.1 localhost

---

<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:** [July 5, 2017, 10:48pm UTC](https://discuss.elastic.co/t/running-es-on-windows-8/50800/3 "2017-07-05T22:48:58Z")

</div>


