Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

User not deleted in HDFS

Highlighted

User not deleted in HDFS

New Contributor

Using script "post-user-creation-hook.sh" the user home directory getting created automatically and I'm able to view the user folder as below but after the user has been deleted in ambari console still the user home path exists. Kindly assist. Much appreciated for your quick response.

# hdfs dfs -ls /user/

drwxr-xr-x - unknown hdfs 0 2017-12-12 17:23 /user/unknown

1 REPLY 1

Re: User not deleted in HDFS

Cloudera Employee

Hi,

The post-user-creation-hook.sh is only executed after user creation and currently there is no post-user-deletion hook in Ambari. I'm afraid you have to delete the home directory manually after removing the user.