ES 2.0 rename cluster

My ES cluster consists of 1 node (so far). If I want to rename the cluster, is it sufficient to adjust the clustername in elasticsearch.yml, or do I have to more?
And is it the same when changing a node name?

That is enough to rename it

Not if you have data already. You also need to rename the dir Inside data.

I've been looking for a data dir, but I'm unable to find it. Where is it supposed to be?

See https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-dir-layout.html

Ok thanks, I read that already, but I suppose not close enough. I searched the system for a directory named "data", but I think (since I use debian), that the directory "elasticsearch" in /var/lib/elasticsearch is the clustername.
I try renaming this directory on my test system first :smile: