Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

.Trash is not happening with wasb(blob space)

avatar

Issue with Trash.

Configured the trash value fs.trash.interval is 360 min ...

However trash is not happening as per configuration that is 6hr,

I have deleted one file in 22/feb and one more file deleted on 23/march and one more deleted on 2/april ,

as per configuration in our trash it should contain only 2/April file, but in my case trash path contains all the old files.

Kindly let me know, how to configure the correct trash in wasb space.

Thanks,

Praveen

1 ACCEPTED SOLUTION

avatar
Master Mentor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
3 REPLIES 3

avatar
Master Mentor

@Praveen Atmakuri

If you change the configuration through Ambari did you restart the stale services?

You can use the -skipTrash option will bypass trash very handy in releasing diskspace in an emergency.

$ hdfs dfs -rm -R -skipTrash /xxxx/22/feb/*

If you set fs.trash.interval=60 min

That means the files you deleted to .trash directory will be cleared in exactly 1 hour

fs.trash.interval is the number of minutes after which the checkpoint gets deleted. It's advisable NOT to set it to 0 because that disables the configuration.

Hope that helps

avatar

skiptrash is fine, However why .trash is not working even i set the fs.trash.interval=360 min

Kindly let me know is there any way to configure the trash in wasb(Azure blob storage)

avatar
Master Mentor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login