DC/OS Software Development Kit Status: Alpha

HDFS: Uninstall

DC/OS 1.10

If you are using DC/OS 1.10 and the installed service has a version greater than 2.0.0-x:

  1. Uninstall the service. From the DC/OS CLI, enter dcos package uninstall --app-id=<instancename> beta-hdfs.

For example, to uninstall an HDFS instance named hdfs-dev, run:

$ dcos package uninstall beta-hdfs --app-id=/hdfs

Older versions

If you are running DC/OS 1.9 or older, or a version of the service that is older than 2.0.0-x, follow these steps:

  1. Stop the service. From the DC/OS CLI, enter dcos package uninstall --app-id=<instancename> <packagename>. For example:
    $ dcos package uninstall --app-id=hdfs-dev beta-hdfs
    
  2. Clean up remaining reserved resources with the framework cleaner script, janitor.py. See DC/OS documentation for more information about the framework cleaner script.

For example, to uninstall an HDFS instance named hdfs-dev, run:

$ MY_SERVICE_NAME=hdfs-dev
$ dcos package uninstall --app-id=$MY_SERVICE_NAME beta-hdfs
$ dcos node ssh --master-proxy --leader "docker run mesosphere/janitor /janitor.py \
    -r $MY_SERVICE_NAME-role \
    -p $MY_SERVICE_NAME-principal \
    -z dcos-service-$MY_SERVICE_NAME"