java.io.IOException: alluxio.exception.DirectoryNotEmptyException

170 views
Skip to first unread message

vinayak gadag

unread,
Aug 3, 2017, 5:35:16 AM8/3/17
to Alluxio Users

Getting the below error whenever I'm trying to delete file from alluxio storage.

Caused by: java.io.IOException: alluxio.exception.DirectoryNotEmptyException Cannot delete the directory /abc/xyz because the UFS has contents not loaded into Alluxio. Sync Alluxio with UFS or run delete with unchecked flag to forcibly delete.

My Questions are .!

1. What will be the proper solution for this?
2. When do we get this error?
3. How can we reproduce this? - I'm not able reproduce this consistently.

Thanks,
Vinayak

vinayak gadag

unread,
Aug 3, 2017, 5:44:17 AM8/3/17
to Alluxio Users
Adding alluxio version and UFS information

Alluxio version- 1.5.0
UFS - HDFS
Thanks,
Vinayak

ad...@alluxio.com

unread,
Aug 7, 2017, 2:22:44 PM8/7/17
to Alluxio Users
Hi Vinayak,

Which UFS are you using?.

- The error message is expected behavior when you attempt to delete a file/directory from Alluxio when its contents (including sub-directories/files) are not loaded into Alluxio previously.
- You can turn this feature off using the parameter alluxio.user.file.delete.unchecked=true

To reproduce this create a directory in the UFS (not through Alluxio) with a file in it. Then attempt to delete the directory in Alluxio w/o listing its contents first.

Let me 

Thanks,

Adit

vinayak gadag

unread,
Aug 7, 2017, 9:20:14 PM8/7/17
to ad...@alluxio.com, Alluxio Users
Hey thanks for the reply Adit, we are using HDFS as underFS system and currently I have set unchecked flag to true and not faced any issues till now.
Thanks for the reproducing steps.

- Vinayak,

--
You received this message because you are subscribed to a topic in the Google Groups "Alluxio Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/alluxio-users/H7mhCynlU6w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to alluxio-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ad...@alluxio.com

unread,
Aug 25, 2017, 6:34:47 PM8/25/17
to Alluxio Users, ad...@alluxio.com
Thanks for letting me know! I'm glad your problem was solved.
To unsubscribe from this group and all its topics, send an email to alluxio-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages