Created
July 10, 2012 21:09
-
-
Save dlecocq/3086251 to your computer and use it in GitHub Desktop.
Configuring Hypertable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export VERSION=0.9.5.6 | |
export HT_USER=ec2-user | |
export HT_GRP=ec2-user | |
# This is the string this host will identify by | |
export HT_HOST=fresh-hypertable-01 | |
# 0. ldconfig, /etc/hosts | |
echo "/usr/local/lib" | sudo tee -a /etc/ld.so.conf | |
sudo /sbin/ldconfig | |
echo "127.0.0.1 $HT_HOST" | sudo tee -a /etc/hosts | |
# 2. FHS-IZE | |
sudo chown -R $HT_USER:$HT_GRP /opt/hypertable/$VERSION | |
sudo mkdir /etc/opt/hypertable /var/opt/hypertable | |
sudo chown $HT_USER:$HT_GRP /etc/opt/hypertable /var/opt/hypertable | |
/opt/hypertable/$VERSION/bin/fhsize.sh | |
# 3. Set "Current" Link | |
cd /opt/hypertable | |
sudo ln -s $VERSION current | |
# 4. Setup Data Volume | |
sudo mkdir -p /data/hypertable/fs | |
sudo chown -R ec2-user:ec2-user /data/hypertable | |
cd /opt/hypertable/current | |
rm -f ./fs | |
ln -s /data/hypertable/fs | |
# 5. Edit Configuration | |
sed -i "s/\(Hyperspace\.Replica\.Host=\).*$/\1$HT_HOST/" /opt/hypertable/current/conf/hypertable.cfg | |
# 6. Start Hypertable | |
/opt/hypertable/current/bin/start-all-servers.sh local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment