Skip to content

Instantly share code, notes, and snippets.

@saptarshiguha
Created November 3, 2016 15:37
Show Gist options
  • Select an option

  • Save saptarshiguha/be3c46ecb3d5cc89212138fd8fe0d42c to your computer and use it in GitHub Desktop.

Select an option

Save saptarshiguha/be3c46ecb3d5cc89212138fd8fe0d42c to your computer and use it in GitHub Desktop.
## Download Protobuf Packages (2.5) and install
wget http://cbs.centos.org/kojifiles/packages/protobuf/2.5.0/10.el7.centos/x86_64/protobuf-2.5.0-10.el7.centos.x86_64.rpm
wget http://cbs.centos.org/kojifiles/packages/protobuf/2.5.0/10.el7.centos/x86_64/protobuf-devel-2.5.0-10.el7.centos.x86_64.rpm
wget http://cbs.centos.org/kojifiles/packages/protobuf/2.5.0/10.el7.centos/x86_64/protobuf-compiler-2.5.0-10.el7.centos.x86_64.rpm
sudo yum -y install protobuf-2.5.0-10.el7.centos.x86_64.rpm protobuf-compiler-2.5.0-10.el7.centos.x86_64.rpm protobuf-devel-2.5.0-10.el7.centos.x86_64.rpm
## Set Hadoop Config VAriables that RHIPE requires
echo "export HADOOP_LIBS=/usr/lib/hadoop/client:/usr/lib/hadoop/lib:/usr/lib/hadoop:/usr/lib/hadoop-hdfs/:/usr/lib/hadoop-yarn/:/usr/lib/hadoop-mapreduce/:/usr/share/aws/emr/emrfs/conf:/usr/share/aws/emr/emrfs/lib/:/usr/share/aws/emr/emrfs/auxlib/" >> /home/hadoop/.bash_profile
echo "export HADOOP_CONF_DIR=/etc/hadoop/conf" >> /home/hadoop/.bash_profile
## Download the R packages and copy them into the folder
## Note, hat RHIPE was compiled by
## cloning RHIPE (As of commit: d3eed56735ece58a7a39e44cd48cfd3522212766)
## and compiling for hadoop-2 (not CDH etc)
## The R library tarball was built as: tar cvf Rlibraries_c34xlarge.tar /home/hadoop/R_libs
cd /home/hadoop/
aws s3 cp s3://mozilla-metrics/user/sguha/tmp/Rlibraries_c34xlarge.tar /home/hadoop/
tar xvf /home/hadoop/Rlibraries_c34xlarge.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment