When path.data is changed, elasticsearch is not starting

Looks like elasticsearch doesn't have the access it needs to the data path.

Assuming you are running it as a user called 'elasticsearch', you'll probably need to do something like:

sudo chown elasticsearch /opt/elk/es/data