# Elasticsearch doesn't start after editting conf file

**URL:** <https://discuss.elastic.co/t/elasticsearch-doesnt-start-after-editting-conf-file/68406>\
**Category:** Elasticsearch\
**Created:** [December 8, 2016, 8:47am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-start-after-editting-conf-file/68406 "2016-12-08T08:47:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanimoto](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@tanimoto](https://discuss.elastic.co/u/tanimoto)\
**Post date:** [December 8, 2016, 8:47am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-start-after-editting-conf-file/68406/1 "2016-12-08T08:47:01Z")

</div>

I added new lines in `/etc/elasticsearch/elasticsearch.yml` and restart elasticsearch.

added lines : (tried to set kuromoji plugin as default analyzer)

```auto
index.analysis.analyzer.default.type: custom
index.analysis.analyzer.default.tokenizer: kuromoji_tokenizer

```

But it doesn't start and output following logs.

```auto
[root@localhost elasticsearch]# service elasticsearch status
● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2016-12-08 08:37:31 UTC; 8s ago
     Docs: http://www.elastic.co
  Process: 8106 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -Des.pidfile=${PID_DIR}/elasticsearch.pid -Des.default.path.home=${ES_HOME} -Des.default.path.logs=${LOG_DIR} -Des.default.path.data=${DATA_DIR} -Des.default.path.conf=${CONF_DIR} (code=exited, status=1/FAILURE)
  Process: 8104 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
 Main PID: 8106 (code=exited, status=1/FAILURE)

Dec 08 08:37:31 localhost.localdomain elasticsearch[8106]: # path.logs: /path/to/logs
Dec 08 08:37:31 localhost.localdomain elasticsearch[8106]: #
Dec 08 08:37:31 localhost.localdomain elasticsearch[8106]: # ----------------------------------- Memory -----------------------------------
Dec 08 08:37:31 localhost.localdomain elasticsearch[8106]: #
Dec 08 08:37:31 localhost.localdomain elasticsearch[8106]: # Lock the memory on startup:
Dec 08 08:37:31 localhost.localdomain elasticsearch[8106]: #
Dec 08 08:37:31 localhost.localdomain elasticsearch[8106]: # bootstrap.memory_lock: true
Dec 08 08:37:31 localhost.localdomain systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Dec 08 08:37:31 localhost.localdomain systemd[1]: Unit elasticsearch.service entered failed state.
Dec 08 08:37:31 localhost.localdomain systemd[1]: elasticsearch.service failed.

```

elasticsearch.yml

```auto

# node.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
# path.data: /path/to/data
#
# Path to log files:
#
# path.logs: /path/to/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
# bootstrap.memory_lock: true
#
# Make sure that the `ES_HEAP_SIZE` environment variable is set to about half the memory
# available on the system and that the owner of the process is allowed to use this limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
 network.host: 192.168.33.10
#
# Set a custom port for HTTP:
#
 http.port: 9200
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
# discovery.zen.ping.unicast.hosts: ["host1", "host2"]
#
# Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1):
#
# discovery.zen.minimum_master_nodes: 3
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html>
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
# gateway.recover_after_nodes: 3
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html>
#
# ---------------------------------- Various -----------------------------------
#
# Disable starting multiple nodes on a single system:
#
# node.max_local_storage_nodes: 1
#
# Require explicit names when deleting indices:
#
# action.destructive_requires_name: true
index.analysis.analyzer.default.type: custom
index.analysis.analyzer.default.tokenizer: kuromoji_tokenizer

```

elasticsearch ver 2.4.2

any advice?

thanks.

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [December 8, 2016, 9:00am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-start-after-editting-conf-file/68406/2 "2016-12-08T09:00:53Z")

</div>

You need to deleted the space characters at the start of the `network.host` and `network.port` lines. YAML uses whitespace indentation as part of its syntax so you need to make sure that these lines do not start with whitespace.

---

<div class="post-metadata">

**Author:** ![tanimoto](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@tanimoto](https://discuss.elastic.co/u/tanimoto)\
**Post date:** [December 8, 2016, 9:03am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-start-after-editting-conf-file/68406/3 "2016-12-08T09:03:50Z")

</div>

it works!!!!

Thanks a lot!!!

---

<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:** [January 5, 2017, 9:03am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-start-after-editting-conf-file/68406/4 "2017-01-05T09:03:57Z")

</div>

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