Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#!/bin/bash -ex
# run only on MASTER node.
if grep -Fq "\"isMaster\": true" /mnt/var/lib/info/instance.json ; then
# open the ssh port...
perl -pi -e 's/^#?Port 22$/Port 22\nPort 443/' /etc/ssh/sshd_config
/etc/init.d/sshd restart
# install scala and sbt.
# scala is in standard bootstrap action of EMR. so you dont need to install by yourself.
sudo rpm -ivh sbt-0.13.7.rpm
# install solr and start.
mv solr-4.10.3 /home/hadoop/solr
cp -r /home/hadoop/solr/example/solr/collection1 /home/hadoop/solr/example/solr/collection2
echo "name=collection2" > /home/hadoop/solr/example/solr/collection2/
/home/hadoop/solr/bin/solr start
# download source.
sudo yum install git -y
git clone
cd urge-recommend-u2i
git checkout develop
# build and package.
sbt package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.