As you can see from the documentation, path.home is a variable which must be set to define where on the hard disk to store data.

How do I set path.home?

After searching/trial and error, I have found that path.homecannot be set in elasticsearch.yml (as indicated in the documentation). This will cause your elasticsearch service to fail when you try load that new config.

path.home is a JVM arg.

specifically -Des.path.home="~/folder/"

Email codedump link for What is `path.home` variable and how do I set it?