Skip to content

Instantly share code, notes, and snippets.

@mehdimehdi
Created January 23, 2012 07:15
Show Gist options
  • Save mehdimehdi/1661359 to your computer and use it in GitHub Desktop.
Save mehdimehdi/1661359 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo 'Checking if Hadoop is already installed...'
if [ -d ~/hadoop ]
then
echo 'Hadoop found.'
else
echo 'Hadoop not found. Installing it...'
wget -O ~/hadoop-0.20.203.0rc1.tar.gz https://s3.amazonaws.com/punchtab-software/hadoop-0.20.203.0rc1.tar.gz
echo 'Hadoop installed.'
fi
echo 'Build complete.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment