Last active
August 29, 2015 14:07
-
-
Save akiatoji/7421bf9d339e04ca9839 to your computer and use it in GitHub Desktop.
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
# Enable eth0 | |
vi network-scrips/ifcfg-eth0 # change to ONBOOT=yes | |
reboot now | |
# Install dependencies for VBoxGuest | |
yum -y install kernel-devel-2.6.32-431.el6..x86_64 | |
yum -y groupinstall "Development tools" | |
yum -y groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts" | |
vi /etc/inittab # Change default run level to 5 | |
/etc/init.d/vboxadd setup | |
reboot now | |
# install jre. Go to oracle and download it | |
# set up the downloaded location as a shared folder and mount | |
mount -t vboxsf host /mnt # remember this is effin vboxSF | |
# install jre | |
rpm -Uvh jre-7u67-linux-x64.rpm | |
# make it the default | |
alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 200000 | |
alternatives --config java # pick the one just installed | |
# make a couple of clones here for Cassandra cluster | |
####### | |
# On clones | |
# edit host name (VM should be running in bridged or host internal mode) | |
vi /etc/hosts | |
# Cassandra needs jna | |
yum install jna | |
# add datastax yum repository | |
vi /etc/yum.repos.d/datastax.repo | |
# add below | |
[datastax] | |
name = DataStax | |
baseurl = http://rpm.datastax.com/community | |
enabled = 1 | |
gpgcheck = 0 | |
# Install cassandra | |
yum install dsc20 | |
# Start cassandra | |
service cassandra start | |
service cassandra status | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment