Giuseppe Santoro created AMBARI-6565:
----------------------------------------
Summary: HostCleanup do not delete users Falcon and Tez
Key: AMBARI-6565
URL: https://issues.apache.org/jira/browse/AMBARI-6565
Project: Ambari
Issue Type: Bug
Affects Versions: 1.6.1
Reporter: Giuseppe Santoro
Priority: Trivial
I am trying to cleanup a DataNode machine after I have decommissioned and
deleted the host with Ambari Web 1.6.1.
I am using the script at
*/usr/lib/python2.6/site-packages/ambari_agent/HostCleanup.py* and I realized
that the users "falcon" and "tez" are not detected and then not deleted. The
users are still there as well as their home directories.
This is part of my HostCleanup output
{code}
INFO:HostCleanup:
Deleting users: ['ambari-qa', 'hbase', 'nagios', 'oozie', 'hcat', 'hive',
'yarn', 'hdfs', 'mapred', 'zookeeper', 'rrdcached', 'sqoop']
INFO:HostCleanup:Executing command: sudo userdel -rf ambari-qa
INFO:HostCleanup:Successfully deleted user: ambari-qa
INFO:HostCleanup:Executing command: sudo userdel -rf hbase
INFO:HostCleanup:Successfully deleted user: hbase
INFO:HostCleanup:Executing command: sudo userdel -rf nagios
INFO:HostCleanup:Successfully deleted user: nagios
INFO:HostCleanup:Executing command: sudo userdel -rf oozie
INFO:HostCleanup:Successfully deleted user: oozie
INFO:HostCleanup:Executing command: sudo userdel -rf hcat
INFO:HostCleanup:Successfully deleted user: hcat
INFO:HostCleanup:Executing command: sudo userdel -rf hive
INFO:HostCleanup:Successfully deleted user: hive
INFO:HostCleanup:Executing command: sudo userdel -rf yarn
INFO:HostCleanup:Successfully deleted user: yarn
INFO:HostCleanup:Executing command: sudo userdel -rf hdfs
INFO:HostCleanup:Successfully deleted user: hdfs
INFO:HostCleanup:Executing command: sudo userdel -rf mapred
INFO:HostCleanup:Successfully deleted user: mapred
INFO:HostCleanup:Executing command: sudo userdel -rf zookeeper
INFO:HostCleanup:Successfully deleted user: zookeeper
INFO:HostCleanup:Executing command: sudo userdel -rf rrdcached
WARNING:HostCleanup:Cannot delete user : rrdcached, userdel: warning: can't
remove /var/spool/mail/rrdcached: No such file or directory
userdel: rrdcached home directory (/var/rrdtool/rrdcached) not found
INFO:HostCleanup:Executing command: sudo userdel -rf sqoop
WARNING:HostCleanup:Cannot delete user : sqoop, userdel: warning: can't remove
/var/spool/mail/sqoop: No such file or directory
userdel: sqoop home directory (/var/lib/sqoop) not found
INFO:HostCleanup:Executing command: sudo groupdel hadoop
WARNING:HostCleanup:Cannot delete group : hadoop, groupdel: cannot remove the
primary group of user 'nobody'
INFO:HostCleanup:Path doesn't exists: /home/ambari-qa
INFO:HostCleanup:Path doesn't exists: /home/hbase
INFO:HostCleanup:Path doesn't exists: /home/nagios
INFO:HostCleanup:Path doesn't exists: /home/oozie
INFO:HostCleanup:Path doesn't exists: /home/hcat
INFO:HostCleanup:Path doesn't exists: /home/hive
INFO:HostCleanup:Path doesn't exists: /home/yarn
INFO:HostCleanup:Path doesn't exists: /home/hdfs
INFO:HostCleanup:Path doesn't exists: /home/mapred
INFO:HostCleanup:Path doesn't exists: /home/zookeeper
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)