Created on 05-03-2016 11:13 AM - edited 08-19-2019 02:59 AM
lunch this script on all host
python /usr/lib/python2.6/site-packages/ambari_agent/HostCleanup.py --silent
with root user. This script delete all user, packet, directory and config of all hdp service for clean installation :)
I response in other post: delete all user, packet, directory and config of all hdp service for clean installation :)
thank you @Alessio Ubaldi, it is still showing the same issue.
So, I tried it manually using the below command:(to delete the existing user)
# userdel hive
used the above command for all user listed in users list
This Worked for me!!
yes, you can use this command for delete one to one all user. But with python script you can delete all user and packet, directory and config of all hdp service for clean installation :)
in shell, it is showing that users are deleted. But in Ambari it is still Same.
This script is need to lunch only BEFORE you install hdp. NOT AFTER or will remove all service and user! This script not delete ambari user (is stored on db you are used for configured ambari), but delete only the SO user. Ambari user is not same SO user.
If this is users created from a just abandoned install, I would even leave them as is and proceed with the install. There can also be cases where you shouldn't be cleaning up users (like where they are created in advance with specific gids and uids in advance). I know this is counter to general guidance on cleanup but general problems with existing users are if a user with same name is created by a non-hdp process.