Steps to uninstall DC/OS service
Uninstall service
dcos package uninstall hdfs
Notes: use http://192.168.2.210:8181/ to find the correct service name created in zookeeper, for example hdfs is registered as dcos-hdfs
docker run mesosphere/janitor /janitor.py -r hdfs-role -p hdfs-principal -z dcos-hdfs
Uninstall DC/OS node
dcos-shell
/opt/mesosphere/bin/pkgpanda uninstall
rm -rf /opt/mesosphere /var/lib/mesos /var/lib/dcos /var/lib/zookeeper /var/log/mesos /etc/mesosphere /var/lib/mesosphere /tmp/dcos
rm -rf /etc/profile.d/dcos.sh /etc/systemd/journald.conf.d/dcos.conf /etc/systemd/system/dcos-download.service /etc/systemd/system/dcos-link-env.service
rm -rf /etc/systemd/system/dcos.target /etc/systemd/system/dcos.target.wants
rm -rf /etc/systemd/system/dcos-setup.service /etc/systemd/system/multi-user.target.wants/dcos-setup.service /etc/systemd/system/multi-user.target.wants/dcos.target
Reinstall DC/OS node
mkdir /tmp/dcos && cd /tmp/dcos
curl -O http://192.168.1.230:8888/dcos_install.sh
chmod 755 dcos_install.sh
./dcos_install.sh master
./dcos_install.sh slave
./dcos_install.sh slave_public
Last updated
Was this helpful?