Instance Type: i2.2xlarge
Prerequisites:
- Yum Package Management application installed.
- Root or sudo access to the install machine.
- Latest version of Oracle Java SE Runtime Environment (JRE) 8 or OpenJDK 7.
- Python 2.6+ (if installing OpsCenter).
Steps:
1. Prepare partitions, I have 2x800 SSD as my data disk:
## Note: The SSD-based instance storage in I2 instances do not come pre-formatted with a FS, you have to use a mkfs utility to mount the device as a file system. ## Create ext4 filesystem # mkfs.ext4 /dev/xvdb # mkfs.ext4 /dev/xvdc ## Update /etc/fstab # vim /etc/fstab, add /dev/xvdb /mnt/data00 ext4 defaults,nosuid,nodev,noatime 0 0 /dev/xvdc /mnt/data01 ext4 defaults,nosuid,nodev,noatime 0 0 ## Create mount points # mkdir /mnt/{data00,data01} ## Mount new FS # mount -a ## Verify # df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 25G 1.2G 24G 5% / devtmpfs 30G 68K 30G 1% /dev tmpfs 31G 0 31G 0% /dev/shm /dev/xvdb 734G 69M 697G 1% /mnt/data00 /dev/xvdc 734G 69M 697G 1% /mnt/data01
2. Add the DataStax Community repository to the /etc/yum.repos.d/datastax.repo:
# vim /etc/yum.repos.d/datastax.repo Add [datastax] name = DataStax Repo for Apache Cassandra baseurl = http://rpm.datastax.com/community enabled = 1 gpgcheck = 0 # yum list | grep cassandra apache-cassandra11.noarch 1.1.12-1 datastax cassandra12.noarch 1.2.19-1 datastax cassandra20.noarch 2.0.17-1 datastax cassandra21.noarch 2.1.11-1 datastax cassandra21-tools.noarch 2.1.11-1 datastax cassandra22.noarch 2.2.3-1 datastax cassandra22-tools.noarch 2.2.3-1 datastax
3. Install cassandra22
# yum install cassandra22 # yum install cassandra22-tools
4. Install jna:
# yum install jna
5. Now you can configure cassandra.yaml file and start cassandra service.
No comments:
Post a Comment