Custom Cluster name issue

Hi,

I want to give custom cluster name to create index but I am not able to do
so as after changing the setting in elasticsearch.yml when I tries to start
the instance it gives me following error as:

[dmadmin@INDDTMDIDX01 bin]$ {0.19.10}: Setup Failed ...

  • SettingsException[Failed to load settings from
    [file:/dctm/app/elasticsearch-0.19.10_Second_Instance/config/elasticsearch.yml]]
    ParserException[null; expected '', but found
    BlockMappingStart]
    [dmadmin@INDDTMDIDX01 bin]$ ./elasticsearch
    [dmadmin@INDDTMDIDX01 bin]$ {0.19.10}: Setup Failed ...
  • SettingsException[Failed to load settings from
    [file:/dctm/app/elasticsearch-0.19.10_Second_Instance/config/elasticsearch.yml]]
    ParserException[null; expected '', but found
    BlockMappingStart]
    Can anyone please help me out in this?

Regards,
Mayank

--

Hello!

Could you share your elasticsearch.yml file, because it seems that there is a problem with it.

--

Regards,

Rafał Kuć

Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch

Hi,

I want to give custom cluster name to create index but I am not able to do so as after changing the setting in elasticsearch.yml when I tries to start the instance it gives me following error as:

[dmadmin@INDDTMDIDX01 bin]$ {0.19.10}: Setup Failed ...

  • SettingsException[Failed to load settings from [file:/dctm/app/elasticsearch-0.19.10_Second_Instance/config/elasticsearch.yml]]

      ParserException[null; expected '<document start>', but found BlockMappingStart]
    

[dmadmin@INDDTMDIDX01 bin]$ ./elasticsearch

[dmadmin@INDDTMDIDX01 bin]$ {0.19.10}: Setup Failed ...

  • SettingsException[Failed to load settings from [file:/dctm/app/elasticsearch-0.19.10_Second_Instance/config/elasticsearch.yml]]

      ParserException[null; expected '<document start>', but found BlockMappingStart]
    

Can anyone please help me out in this?

Regards,

Mayank

--

In your elasticsearch.yml, you probably have a line that looks like this:

cluster.name:"some-elasticsearch-cluster-name"

Put space between : and ", so it looks like this:

cluster.name: "some-elasticsearch-cluster-name"

If this doesn't help, please post your elasticsearch.yml file as Rafał has
already suggested.

On Monday, December 3, 2012 3:21:32 AM UTC-5, Mayank wrote:

Hi,

I want to give custom cluster name to create index but I am not able to do
so as after changing the setting in elasticsearch.yml when I tries to start
the instance it gives me following error as:

[dmadmin@INDDTMDIDX01 bin]$ {0.19.10}: Setup Failed ...

  • SettingsException[Failed to load settings from
    [file:/dctm/app/elasticsearch-0.19.10_Second_Instance/config/elasticsearch.yml]]
    ParserException[null; expected '', but found
    BlockMappingStart]
    [dmadmin@INDDTMDIDX01 bin]$ ./elasticsearch
    [dmadmin@INDDTMDIDX01 bin]$ {0.19.10}: Setup Failed ...
  • SettingsException[Failed to load settings from
    [file:/dctm/app/elasticsearch-0.19.10_Second_Instance/config/elasticsearch.yml]]
    ParserException[null; expected '', but found
    BlockMappingStart]
    Can anyone please help me out in this?

Regards,
Mayank

--

Hi Rafal/Igor,

Thanks for the suggestion it worked by reinstalling the instance again with
the old elasticsearch.yml.

On Tuesday, December 4, 2012 12:19:11 AM UTC+5:30, Igor Motov wrote:

In your elasticsearch.yml, you probably have a line that looks like this:

cluster.name:"some-elasticsearch-cluster-name"

Put space between : and ", so it looks like this:

cluster.name: "some-elasticsearch-cluster-name"

If this doesn't help, please post your elasticsearch.yml file as Rafał has
already suggested.

On Monday, December 3, 2012 3:21:32 AM UTC-5, Mayank wrote:

Hi,

I want to give custom cluster name to create index but I am not able to
do so as after changing the setting in elasticsearch.yml when I tries to
start the instance it gives me following error as:

[dmadmin@INDDTMDIDX01 bin]$ {0.19.10}: Setup Failed ...

  • SettingsException[Failed to load settings from
    [file:/dctm/app/elasticsearch-0.19.10_Second_Instance/config/elasticsearch.yml]]
    ParserException[null; expected '', but found
    BlockMappingStart]
    [dmadmin@INDDTMDIDX01 bin]$ ./elasticsearch
    [dmadmin@INDDTMDIDX01 bin]$ {0.19.10}: Setup Failed ...
  • SettingsException[Failed to load settings from
    [file:/dctm/app/elasticsearch-0.19.10_Second_Instance/config/elasticsearch.yml]]
    ParserException[null; expected '', but found
    BlockMappingStart]
    Can anyone please help me out in this?

Regards,
Mayank

--