Elasticsearch not adding cluster_name to datafiles location (path.data)

Hi

Elasticsearch 6.4.3

I did not notice this before, but why is that, if I have in elasticsearch.yml file:

path.data: "/elastic/data/"

Then my files are created under:

<<path.data>>/nodes/0/...

In 1.7.2, I also have the same value for path.data:

path.data: "/elastic/data/"

But in 1.7.2, files are created under:

<<path.data>>/<<cluster_name>>/nodes/0/...

Why do they lose the cluster_name from this path..?

In 6.x, should I change path.data to..?

path.data: "/elastic/data/<<cluster_name>>/"

Or is there some other (better) approach for having cluster_name in its path..?
What are your recommendations.

Thanks.

Regards
Raul

Why do you need the cluster name in the data path?

Hmm, would be nice, structurally, I guess..

But what would be the reason why they dropped this..?

Regards
Raul

I do not know, but as you should not interact directly with the file system anyway, it should not matter.

The reason for dropping the cluster name from the path in 5.0 was that it may contain weird characters that aren't legal in a directory name (or which are only legal on some operating systems). It was removed entirely because there's no need to have multiple clusters under a single path.

1 Like

Ok, fair enough, thanks for the explanation.

Regards
Raul

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