wget http://archive.cloudera.com/cdh5/one-click-install/trusty/amd64/$DEB_INSTALLER
dpkg -i $DEB_INSTALLER

cat > /etc/apt/preferences.d/cloudera.pref <<EOF
Package: *
Pin: release o=Cloudera, l=Cloudera
Pin-Priority: 501
EOF


apt-get -y install hadoop-0.20-mapreduce-jobtracker
apt-get -y install hadoop-hdfs-namenode
apt-get -y install hadoop-hdfs-datanode
apt-get -y install hadoop-client
