Last change
on this file since 222 was
52,
checked in by jazz, 16 years ago
|
|
-
Property svn:executable set to
*
|
File size:
338 bytes
|
Rev | Line | |
---|
[51] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | echo "$1" |
---|
| 4 | |
---|
| 5 | if [ "$1" != remove ] |
---|
| 6 | then |
---|
| 7 | exit 0 |
---|
| 8 | fi |
---|
| 9 | |
---|
| 10 | setup_hdfsadm_user() { |
---|
| 11 | if ! getent passwd hdfsadm >/dev/null; then |
---|
| 12 | echo "no account found: 'hdfsadm'." |
---|
| 13 | else |
---|
| 14 | userdel hdfsadm |
---|
| 15 | rm -rf /home/hdfsadm |
---|
| 16 | rm -rf /var/log/hadoop |
---|
[52] | 17 | rm -rf /tmp/hadoop-hdfsadm* |
---|
| 18 | rm -rf /tmp/hsperfdata_* |
---|
[51] | 19 | fi |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | setup_hdfsadm_user |
---|
Note: See
TracBrowser
for help on using the repository browser.