I saw the following script, posted online, that was used during the hadoop installation process.
sudo tar xzf hadoop-0.20.2.tar.gz
sudo mv hadoop-0.20.2 hadoop
sudo chown -R hadoop:hadoop hadoop
I do not quite understand. What does the
sudo chown -R hadoop:hadoop hadoop
do here? Thanks for the explanation.

hadoopdirectory and everything under it (-R) tohadoop:handoop(user:group). see thechownmanual: linux.die.net/man/1/chown – LiuYan 刘研 Jun 24 '11 at 1:38man chown. – Caleb Jun 24 '11 at 6:37