Uninstallation

You can uninstall a Data Collector instance that was installed from the tarball, from the RPM package, or from Cloudera Manager.

Uninstalling the Tarball (Manual Start)

To uninstall a Data Collector instance that was installed from the tarball and started manually, shut down Data Collector and then remove all Data Collector directories.

  1. In the Data Collector console, click Administration > Shut Down.
    When the confirmation dialog box appears, click Yes.
  2. Remove the following Data Collector directories:
    • $SDC_DIST - The Data Collector runtime directory.
    • $SDC_CONF - The Data Collector configuration directory.
    • $SDC_DATA - The data directory for pipeline configuration and run details.
    • $SDC_LOG - The log directory.
    • $SDC_RESOURCES - The directory for runtime resource files.

Uninstalling the Tarball (Service Start)

To uninstall a Data Collector instance that was installed from the tarball and started as a service, shut down Data Collector and then remove all Data Collector directories.

  1. Use one of the following methods to shut down Data Collector:
    • To use the command line, use the following command:
      service sdc stop
    • To use the Data Collector console, click Administration > Shut Down. When the confirmation dialog box appears, click Yes.
  2. Remove the Data Collector directories.
    For example, if you used the default directories, run the following command to remove the directories:
    rm -rf /etc/init.d/sdc  /etc/sdc /var/log/sdc /var/lib/sdc /var/lib/sdc-resources
  3. Remove the directory where you extracted the tarball.
    For example, if you extracted the tarball to /opt/local/, run the following command to remove the directory:
    rm -rf /opt/local/

Uninstalling the RPM Package

To uninstall a Data Collector instance that was installed from the RPM package, shut down Data Collector, remove the RPM package, and then remove all Data Collector directories.

  1. Use one of the following methods to shut down Data Collector:
    • To use the command line, use the following command:
      service sdc stop
    • To use the Data Collector console, click Administration > Shut Down. When the confirmation dialog box appears, click Yes.
  2. Use the following command to remove the RPM package:
    yum erase streamsets-datacollector
  3. Remove the Data Collector directories.
    For example, if you used the default directories, run the following commands to remove the directories:
    rm -rf /etc/sdc /var/log/sdc /var/lib/sdc /var/lib/sdc-resources
    rm -rf /opt/streamsets-datacollector

Uninstalling from Cloudera Manager

Use Cloudera Manager to uninstall Data Collector installed through Cloudera Manager.

  1. To stop the StreamSets service in Cloudera Manager, click Clusters > StreamSets and then click Actions > Stop.
  2. Click the Parcels icon to return to the Parcels page.
  3. To deactivate the previous StreamSets parcel, choose the appropriate cluster in the Location selector, and then click Deactivate for the parcel.
  4. To remove the StreamSets parcel, click the down arrow to the right of an Activate button and select Remove from Hosts.
  5. To delete the StreamSets parcel, click the down arrow to the right of a Distribute button and select Delete.
  6. To stop the Cloudera Manager Server, use the following command:
    service cloudera-scm-server stop
  7. Delete the Data Collector CSD file from the Local Descriptor Repository Path. By default, the path is /opt/cloudera/csd.
  8. To start the Cloudera Manager Server, use the following command:
    service cloudera-scm-server start