Details
Description
The packages attempts to rename hadoop to hdfs. If the hadoop user is logged in, this will fail.
> hadoop@ubuntu:~$ sudo apt-get install hadoop-0.20 ... > usermod: user hadoop is currently logged in
Is it possible to fail before the install starts if USER or SUDO_USER is `hadoop'? Or perhaps if this succeds?
who | egrep -q '^hadoop'