Skip to content

Instantly share code, notes, and snippets.

@skiane
Created April 11, 2015 22:56
Show Gist options
  • Save skiane/d8b50bcb28faa1e5cd88 to your computer and use it in GitHub Desktop.
Save skiane/d8b50bcb28faa1e5cd88 to your computer and use it in GitHub Desktop.
install CDH
cd /etc/yum.repo.d
curl -O http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/cloudera-cdh5.repo
curl -O http://archive.cloudera.com/gplextras5/redhat/6/x86_64/gplextras/cloudera-gplextras5.repo
rpm --import http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera
yum clean all
# All
yum install -y zookeeper
mkdir -p /var/lib/zookeeper
chown -R zookeeper /var/lib/zookeeper/
service zookeeper-server init
service zookeeper-server start
# NameNode
yum install -y zookeeper-server
yum install -y hadoop-yarn-resourcemanager
yum install -y hadoop-hdfs-namenode
yum install -y hadoop-mapreduce-historyserver hadoop-yarn-proxyserver
# DataNode
yum install -y hadoop-client
yum install -y hadoop-lzo
# HDFS init
sudo -u hdfs hadoop fs -mkdir /tmp
sudo -u hdfs hadoop fs -chmod -R 1777 /tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment