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.
-
In the Data Collector UI, click .
When the confirmation dialog box appears, click Yes.
-
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.
-
Use one of the following methods to shut down Data Collector:
- To use the command line, use the required command for your operating
system.
For CentOS 6, Oracle Linux 6, Red Hat Enterprise Linux 6, or Ubuntu 14.04 LTS, use:
service sdc stop
For CentOS 7, Oracle Linux 7, Red Hat Enterprise Linux 7, or Ubuntu 16.04 LTS, use:
systemctl stop sdc
-
To use the Data Collector UI, click . When the confirmation dialog box appears, click Yes.
- To use the command line, use the required command for your operating
system.
-
Remove the Data Collector directories.
For example, if you used the default directories on Red Hat Enterprise Linux 6, 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
-
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.
-
Use one of the following methods to shut down Data Collector:
- To use the command line, use the required command for your operating
system.
For CentOS 6, Oracle Linux 6, or Red Hat Enterprise Linux 6, use:
service sdc stop
For CentOS 7, Oracle Linux 7, or Red Hat Enterprise Linux 7, use:
systemctl stop sdc
-
To use the Data Collector UI, click . When the confirmation dialog box appears, click Yes.
- To use the command line, use the required command for your operating
system.
-
Use the following command to remove the RPM package:
yum erase streamsets-datacollector
-
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.
- To stop the StreamSets service in Cloudera Manager, click and then click .
- Click the Parcels icon to return to the Parcels page.
- To deactivate the previous StreamSets parcel, choose the appropriate cluster in the Location selector, and then click Deactivate for the parcel.
- To remove the StreamSets parcel, click the down arrow to the right of an Activate button and select Remove from Hosts.
- To delete the StreamSets parcel, click the down arrow to the right of a Distribute button and select Delete.
-
To stop the Cloudera Manager Server, use the following command:
service cloudera-scm-server stop
-
Delete the Data Collector CSD file from the Local Descriptor Repository Path. By
default, the path is
/opt/cloudera/csd
. -
To start the Cloudera Manager Server, use the following command:
service cloudera-scm-server start