天天看點

hadoop配置垃圾回收時間

添加 <property> <name>fs.trash.interval</name> <value>分鐘</value> <description>Number of minutes after which the checkpoint gets deleted. If zero, the trash feature is disabled. This option may be configured both on the server and the client. If trash is disabled server side then the client side configuration is checked. If trash is enabled on the server side then the value configured on the server is used and the client configuration value is ignored. </description> </property> 主要是修改value值,它是以分鐘進行計算。時間到了就會清理掉檔案。若不進行配置預設值是0,直接删除。
說明:使用notepad++文本工具可以直接編輯hadoop的配置檔案,它會自動上傳修改内容

image.png