After adding following config in core-site.xml for hdfs, it does not create /user/X/.Trash
folder when using webhdfs delete API.
<property>
<name>fs.trash.interval</name>
<value>10080</value>
</property>
<property>
<name>fs.trash.checkpoint.interval</name>
<value>1440</value>
</property>
Expectation is that, all the deleted files must be in .Trash
folder for the trash interval. However it works when using hadoop command (hadoop fs -rm /test/1
). Does anyone has any idea ?