Page MenuHomePhabricator

Check home/HDFS leftovers of kaldari
Closed, ResolvedPublic

Description

The access for Ryan Kaldari was removed. It needs to be checked if data was left in home dirs on stat*/notebook*/HDFS since they were part of the "analytics-privatedata-users" group. There was no Kerberos principal for that user.

Event Timeline

As part of the ops week I started this task. I updated the bash script in https://wikitech.wikimedia.org/wiki/Analytics/Ops_week#Have_any_users_left_the_Foundation? to:

  • Check /var/userarchive/USERNAME.tar.bz2 using grep instead of sudo as I don't have perms.
  • Use sudo -u hdfs for hdfs commands.

Wiki page has been updated :)

Outcome:

./check_user_folder.sh kaldari

====== stat1004 ======
total 0

====== stat1005 ======
total 0

====== stat1006 ======
total 13980
drwxrwxr-x 2 1271 wikidev     4096 Sep 17  2014 dashboards
-rw-r--r-- 1 1271 wikidev        0 Mar 16  2015 file_name.tsv
-rw-rw-r-- 1 1271 wikidev       25 Sep 12  2014 test.php
-rw-r--r-- 1 1271 wikidev 14305313 Mar 16  2015 wikigrok.tsv

====== stat1007 ======
total 0

====== stat1008 ======
total 0

======= HDFS ========

====== Hive =========

@razzi what I usually do is clean up directories anyway, like ssh stat1004.eqiad.wmnet 'rm -rfv /srv/home/kaldari etc.. (the -v lists files deleted). Please be very careful since we don't backup home dirs so the wrong rm could be problematic :D

JAllemandou subscribed.

Reassigning, files to be checked with Luca.

Removed /srv/home/kaldari.