apt-get install -y curl
if ! apt-key export 'Cloudera Apt Repository' ; then
  curl -s http://archive.cloudera.com/debian/archive.key | apt-key add -
  mkdir -p /etc/apt/sources.list.d
  cat > /etc/apt/sources.list.d/cloudera.list <<EOF
deb http://archive.cloudera.com/debian $(lsb_release -c -s)-testing contrib
deb-src http://archive.cloudera.com/debian $(lsb_release -c -s)-testing contrib
EOF
  apt-get update
fi

apt-get install -f -y --force-yes hadoop-0.20
