big-data-europe / docker-hadoop

Apache Hadoop docker image
2.18k stars 1.27k forks source link

How to stop hadoop #119

Open DanielLee343 opened 2 years ago

DanielLee343 commented 2 years ago

I made some modifications inside namenode's container /opt/hadoop-3.2.1/etc/hadoop/core-site.xml and have to restart Hadoop service. I've tried /opt/hadoop-3.2.1/sbin/stop-all.sh but did not work. Is there a way to do it? Thanks!

OneCricketeer commented 2 years ago

Don't modify the XML file directly.

You should stop the container, then modify the environment variables, which in-turn will be templated into the XML file