Contents Set up Cassandra Cluster using Datastax Community Edition on Amazon EC2 Installing OpsCenter on Amazon AMI References Contact



Similar documents
Getting started Cassandra Access control list

INSTALLING KAAZING WEBSOCKET GATEWAY - HTML5 EDITION ON AN AMAZON EC2 CLOUD SERVER

Single Node Hadoop Cluster Setup

Using The Hortonworks Virtual Sandbox

Cassandra Installation over Ubuntu 1. Installing VMware player:

AlienVault Unified Security Management (USM) 4.x-5.x. Deploying HIDS Agents to Linux Hosts

18.2 user guide No Magic, Inc. 2015

Distributed convex Belief Propagation Amazon EC2 Tutorial

Installation & Upgrade Guide

Eucalyptus User Console Guide

Installing Virtual Coordinator (VC) in Linux Systems that use RPM (Red Hat, Fedora, CentOS) Document # 15807A1-103 Date: Aug 06, 2012

GroundWork Monitor Open Source Installation Guide

Syncplicity On-Premise Storage Connector

DataStax Enterprise 4.8

ShoreTel Advanced Applications Web Utilities

Apache Hadoop 2.0 Installation and Single Node Cluster Configuration on Ubuntu A guide to install and setup Single-Node Apache Hadoop 2.

Hadoop Installation MapReduce Examples Jake Karnes

Tibbr Installation Addendum for Amazon Web Services

ADAM 5.5. System Requirements

Cloud Homework instructions for AWS default instance (Red Hat based)

Immersion Day. Creating an Elastic Load Balancer. Rev

Partek Flow Installation Guide

insync Installation Guide

jbase 5 Install on Amazon AWS a Primer

KeyControl Installation on Amazon Web Services

Install and Config For IBM BPM 8.5.5

RHadoop Installation Guide for Red Hat Enterprise Linux

Enterprise Content Management System Monitor. How to deploy the JMX monitor application in WebSphere ND clustered environments. Revision 1.

How to Install Multicraft on a VPS or Dedicated Server (Ubuntu bit)

docs.hortonworks.com

JobScheduler - Amazon AMI Installation

An Oracle White Paper September Oracle WebLogic Server 12c on Microsoft Windows Azure

Ciphermail Gateway Separate Front-end and Back-end Configuration Guide

Deploy the ExtraHop Discover Appliance with Hyper-V

The objective of this lab is to learn how to set up an environment for running distributed Hadoop applications.

Tcat Server User s Guide. Version 6 R2 December 2009

Tutorial: Using HortonWorks Sandbox 2.3 on Amazon Web Services

Axway API Gateway. Version 7.4.1

SMRT Analysis Software Installation (v2.3.0)

VMware Identity Manager Connector Installation and Configuration

Monitoring Clearswift Gateways with SCOM

Installation Guide. Copyright (c) 2015 The OpenNMS Group, Inc. OpenNMS SNAPSHOT Last updated :19:20 EDT

Leveraging SAP HANA & Hortonworks Data Platform to analyze Wikipedia Page Hit Data

Secure File Transfer Installation. Sender Recipient Attached FIles Pages Date. Development Internal/External None 11 6/23/08

Installing a Symantec Backup Exec Agent on a SnapScale Cluster X2 Node or SnapServer DX1 or DX2. Summary

CommandCenter Secure Gateway

CycleServer Grid Engine Support Install Guide. version 1.25

OnCommand Performance Manager 1.1

WEB2CS INSTALLATION GUIDE

NRPE Documentation CONTENTS. 1. Introduction... a) Purpose... b) Design Overview Example Uses... a) Direct Checks... b) Indirect Checks...

Avira Update Manager User Manual

IBM Cloud Manager with OpenStack

Wavelink Avalanche Mobility Center Linux Reference Guide

AWS Quick Start Guide. Launch a Linux Virtual Machine Version

Source Code Management for Continuous Integration and Deployment. Version 1.0 DO NOT DISTRIBUTE

JAMF Software Server Installation and Configuration Guide for Windows. Version 9.3

Getting Started with Amazon EC2 Management in Eclipse

Backup of ESXi Virtual Machines using Affa

How To Create A Virtual Private Cloud In A Lab On Ec2 (Vpn)

ST 810, Advanced computing

Installing Dspace 1.8 on Ubuntu 12.04

Installation Guide for WebSphere Application Server (WAS) and its Fix Packs on AIX V5.3L

AWS Schema Conversion Tool. User Guide Version 1.0

Running Knn Spark on EC2 Documentation

Zend Server Amazon AMI Quick Start Guide

APPLICATION NOTE. How to build pylon applications for ARM

Creating an ESS instance on the Amazon Cloud

JAMF Software Server Installation and Configuration Guide for Linux. Version 9.2

Ahsay Offsite Backup Server and Ahsay Replication Server

FirstClass Synchronization Services Install Guide

Department of Veterans Affairs VistA Integration Adapter Release Enhancement Manual

1Y0-250 Implementing Citrix NetScaler 10 for App and Desktop Solutions Practice Exam

Security Workshop. Apache + SSL exercises in Ubuntu. 1 Install apache2 and enable SSL 2. 2 Generate a Local Certificate 2

Installing IBM Websphere Application Server 7 and 8 on OS4 Enterprise Linux

Fermilab Central Web Service Site Owner User Manual. DocDB: CS-doc-5372

JAMF Software Server Installation and Configuration Guide for OS X. Version 9.2

NoMachine Enterprise Products, Cloud Server Installation and Configuration Guide

Running Kmeans Mapreduce code on Amazon AWS

HADOOP. Installation and Deployment of a Single Node on a Linux System. Presented by: Liv Nguekap And Garrett Poppe

Building a Private Cloud Cloud Infrastructure Using Opensource

Comsol Multiphysics. Running COMSOL on the Amazon Cloud. VERSION 4.3b

Comsol Multiphysics. Running COMSOL on the Amazon Cloud. VERSION 4.3a

1. If there is a temporary SSL certificate in your /ServerRoot/ssl/certs/ directory, move or delete it. 2. Run the following command:

JAMF Software Server Installation and Configuration Guide for OS X. Version 9.0

User and Reference Manual

How-to setup a proxy in the cloud

1 Reflection ZFE 5. 2 Security Considerations Troubleshooting the Installation 19. Contents 1

Local Caching Servers (LCS): User Manual

Amazon EFS (Preview) User Guide

Cloudera Manager Training: Hands-On Exercises

Opsview in the Cloud. Monitoring with Amazon Web Services. Opsview Technical Overview

Implementing a Weblogic Architecture with High Availability

VMware vcenter Log Insight Security Guide

CDH 5 Quick Start Guide

École des Ponts Paristech DSI. Installing OpenVPN

Single Node Setup. Table of contents

Installation Guide for Pulse on Windows Server 2008R2

Creating a DUO MFA Service in AWS

Network Probe User Guide

SSL VPN User Guide Access Manager 3.1 SP5 January 2013

Transcription:

Contents Set up Cassandra Cluster using Datastax Community Edition on Amazon EC2... 2 Launce Amazon micro-instances... 2 Install JDK 7... 7 Install Cassandra... 8 Configure cassandra.yaml file... 8 Start Cassandra... 9 Stop Cassandra... 9 Clear Data... 9 Check Cluster... 9 Installing OpsCenter on Amazon AMI... 10 Download OpsCenter and other relevant files... 10 Configuring opscenterd.conf file... 10 Explore ops-center in browser (use firefox, chrome or safari)... 11 References... 13 Contact... 13

**Note: This document does not use Datastax AMI which uses Amazon large instances that does not fall under free tier. This document is for those developers who wish to set up Datastax Cassandra using free Amazon EC2 instances. Set up Cassandra Cluster using Datastax Community Edition on Amazon EC2 Launce Amazon micro-instances 1. This example describes installing a 2 node cluster in a single data center. 2. Open Amazon console. Edit the security groups in Network & Security section. a. Click Create Security Group. Fill out the name and description and then click Yes, Create. b. Click Inbound and add rules (using the Create a new rule drop-down list) for the following ports: 3. Port Rule Type Description

4. After you are done adding the above port rules, click Apply Rule Changes. Your completed port rules should look similar to this: Warning This security configuration shown in the above example opens up all externally accessible ports to incoming traffic from any IP address (0.0.0.0/0). The risk of data loss is high. If you desire a more secure configuration, see the Amazon EC2 help on Security Groups.

5. Create two t1.micro-instances of AMI (Amazon Machine Image) in AWS having 64 bit Linux operating system.

Install JDK 7 1. Install jdk7 64 bits for Linux OS on both nodes. Set JAVA_HOME in.bash_profile file at location /home/user/ in both the nodes 2. Check whether the java is properly installed. a. Java version //should give you the version you have installed.

Install Cassandra 1. Next install the DataStax Community tarball in both the nodes: a. $ curl -OL http://downloads.datastax.com/community/dsc.tar.gz 2. Unpack the distribution: a. $ tar -xvzf dsc.tar.gz 3. By default, Cassandra installs files into the /var/lib/cassandra and /var/log/cassandra directories. If you do not have root access to the default directories, ensure you have write access: a. Sudo mkdir /var/lib/cassandra b. Sudo mkdir /var/log/cassandra c. Sudo chown -R $USER: $GROUP /var/lib/cassandra d. Sudo chown -R $USER: $GROUP /var/log/cassandra Configure cassandra.yaml file 1. Modify the following property settings in the cassandra.yaml file located at dsccassandra-2.x.x/conf for each node. Prerequisites a. Each node must be correctly configured before starting the cluster. You must determine or perform the following before starting the cluster: b. Choose a name for the cluster. c. Get the IP address of each node. d. Determine which nodes will be seed nodes. (Cassandra nodes use the seed node list for finding each other and learning the topology of the ring.) e. Determine the snitch. Cassandra uses this information to route inter-node requests as efficiently as possible. f. Determine the Partitioner. It determines how data is distributed across the nodes in the cluster. g. Calculate the token assignments using the Token Generating Tool. Tokens assign a range of data to a particular node within a data center. Each node in the cluster must be assigned a token before it is started for the first time. Token Generating Tool DataStax provides a Python program for generating tokens using the maximum possible range (0 to 2 127-1). Do the following: a. Using a vi editor, create a new file named tokengentool for your token generator program. b. Go to https://raw.github.com/riptano/comboami/2.2/tokentoolv2.py. c. Copy and paste the program into the tokengentool file. d. Save and close the file. e. Make it executable: chmod +x tokengentool f. Run the program tokengentool 2 g. Enter the corresponding value for each node in the initial_token property of the node's cassandra.yaml file

For node0 a. cluster_name: 'MyDemoCluster' b. initial_token: 0 c. seed_provider: -class_name: org.apache.cassandra.locator.simpleseedprovider d. seeds: "<private IP addressess of each seed node separated by comma>" e. listen_address: <localhost private IP address> f. rpc_address: 0.0.0.0 g. endpoint_snitch: RackInferringSnitch/Ec2Snitch h. Partioner: org.apache.cassandra.dht.randompartitioner i. auto_bootstrap: false (Add this setting only when initializing a fresh cluster with no data.) For node1 The configuration for this node is same as node0 except for the listen_address and initial_token. a. listen_address: <localhost private IP address> b. initial_token: 85070591730234615865843651857942052864. Start Cassandra After you have installed and configured Cassandra on all nodes, start Cassandra in all nodes. Stop Cassandra a. $ cd <install_location> b. $ bin/cassandra If the nodes have restarted because of automatic restart, you must stop Cassandra on all nodes and clear the data directories, as described below. Clear Data Check Cluster a. $ ps auwx grep cassandra b. $ sudo kill <pid> a. $ cd <install_location> b. $ sudo rm -rf /var/lib/cassandra/*

To check that the ring is up and running, run the nodetool status command. You will see both the nodes are up and running../nodetool status Installing OpsCenter on Amazon AMI Download OpsCenter and other relevant files 1. Download the tarball distribution of OpsCenter. You can either download the binary from Planet Cassandra or use the curl command: $ curl -OL http://downloads.datastax.com/community/opscenter.tar.gz 2. Unpack the distribution. $ tar -xzvf opscenter.tar.gz $ rm *.tar.gz Files for OpsCenter and a single OpsCenter agent are now in place. 3. Install openssl098 for 64 bit sudo yum install openssl098e.x86_64 4. Install python openssl for 64 bit sudo yum install pyopenssl.x86_64 Configuring opscenterd.conf file Note: The OpsCenter console is the most convenient way to configure basic OpsCenter settings. opscenterd.conf: configures the properties for the OpsCenter daemon. <cluster_specific>.conf: configures properties for each cluster monitored by OpsCenter. This file is created when you add a cluster to the Opscenter. These properties are configured in the opscenterd.conf file. The location of the opscenterd.conf file depends on the type of installation: Packaged installs: /etc/opscenter/opscenterd.conf Binary installs: <install_location>/conf/opscenterd.conf Note: After changing properties in this file, you must restart OpsCenter for the changes to take effect. [agents] ssh_port

The Secure Shell (SSH) port that listens for agent-opscenter communications. Add an [agents] section, if one doesn't already exist, to the opscenterd.conf. In this section, add the ssh_port option and a value for the port number: [agents] ssh_port = 2222 [webserver] port The HTTP port used for client connections to the OpsCenter web server. Default is 8888. Optional HTTPS support. To enable, remove the comment markers (#) in front of properties prefixed with ssl in the opscenterd.conf file. [webserver] interface The interface that the web server uses to listen for client connections. The interface must be an externally accessible IP address or host name. [logging] level The logging level for OpsCenter. Available levels are (from most to least verbose): TRACE, DEBUG, INFO, WARN, or ERROR. The OpsCenter log file is located in /var/log/opscenter/opscenterd.log. Explore ops-center in browser (use firefox, chrome or safari) 1. Open site <public dns name of amazon instance>:8888 2. Click Use Existing Cluster

3. You can also see ring view

References Online documentation: http://www.datastax.com/documentation Contact enquiry@bigdatadevelop.com