You can use Cloudera Manager to enable and disable HDFS trash.
-
Go to the HDFS service.
-
Click the Configurations tab.
-
Select .
-
Select or clear the Use Trash checkbox.
To apply this configuration property to other role groups as needed, edit the
value for the appropriate role group.
-
Restart the cluster and deploy the cluster client configuration.