# Failed to connect to localhost port 9200: Connection refused

**URL:** <https://discuss.elastic.co/t/failed-to-connect-to-localhost-port-9200-connection-refused/76384>\
**Category:** Elasticsearch\
**Created:** [February 24, 2017, 10:34am UTC](https://discuss.elastic.co/t/failed-to-connect-to-localhost-port-9200-connection-refused/76384 "2017-02-24T10:34:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lvctao](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@lvctao](https://discuss.elastic.co/u/lvctao)\
**Post date:** [February 24, 2017, 10:34am UTC](https://discuss.elastic.co/t/failed-to-connect-to-localhost-port-9200-connection-refused/76384/1 "2017-02-24T10:34:38Z")

</div>

when I bulk import data into elastic, the problem always occurred:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/2/2bdac685a2c9f54c3af3ea81bc579e0f4f09e2ee.png)  
The bulk comand I used is:  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/f/f710aba92bbb6acaecd454964040dba7b1c0f35e.png)  
The total amount of my data is 42G and I split it into 4000 files, the size of each file is about 15M:  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/d/def64530c5c45d7d25413bcacbba746208b142cc.png)  
My disk space has 463G remained.  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/c/c33aafbbc2a90381466bc2fe5639f65fab9a7e14.png)

I tried many times and encountered the same problem. Why the problem occurred? Who can tell me, thank you.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 24, 2017, 10:41am UTC](https://discuss.elastic.co/t/failed-to-connect-to-localhost-port-9200-connection-refused/76384/2 "2017-02-24T10:41:28Z")

</div>

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them.

Are you sure ES is running?

---

<div class="post-metadata">

**Author:** ![lvctao](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@lvctao](https://discuss.elastic.co/u/lvctao)\
**Post date:** [February 24, 2017, 10:51am UTC](https://discuss.elastic.co/t/failed-to-connect-to-localhost-port-9200-connection-refused/76384/3 "2017-02-24T10:51:27Z")

</div>

The ES is not running, the point is ES failed to keep alive when I bulk import data.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 25, 2017, 7:19am UTC](https://discuss.elastic.co/t/failed-to-connect-to-localhost-port-9200-connection-refused/76384/4 "2017-02-25T07:19:58Z")

</div>

What's in the logs then?

---

<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:** [March 25, 2017, 7:20am UTC](https://discuss.elastic.co/t/failed-to-connect-to-localhost-port-9200-connection-refused/76384/5 "2017-03-25T07:20:06Z")

</div>

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