Monthly Archives: March 2015

Connect and Fetch data from Cassendra Using Java Code

1 Connector Class : import com.datastax.driver.core.Cluster; import com.datastax.driver.core.Host; import com.datastax.driver.core.Metadata; import com.datastax.driver.core.Session; import static java.lang.System.out; /** * Class used for connecting to Cassandra database. */ public class CassandraConnector { /** Cassandra Cluster. */ private Cluster cluster; /** Cassandra Session. */ … Continue reading

Rate this:

| Tagged , , | Leave a comment

Simple Queries for Execute Apache Cassendra

Create KeySpace 1: CREATE KEYSPACE appsonekeyspace WITH REPLICATION = { ‘class’ : ‘SimpleStrategy’, ‘replication_factor’ : 1 }; Use KeySpace 2: use appsonekeyspace; Create table in Keyspace 3: CREATE TABLE users ( user_id int PRIMARY KEY, user_name text, password text ); … Continue reading

Rate this:

| Leave a comment

Apache Cassendra Installation and Configuration Guide

Installing Cassandra Locally This document aims to provide a few easy to follow steps to take the first-time user from installation, to running single node Cassandra, and overview to configure multinode cluster. Cassandra is meant to run on a cluster … Continue reading

Rate this:

| Leave a comment

Kafka Installation and Configuration Guide

This assumes you are starting fresh and have no existing Kafka or ZooKeeper data. Step 1: Download the code Download the 0.8.2.0 release and un-tar it. > tar -xzf kafka_2.10-0.8.2.0.tgz > cd kafka_2.10-0.8.2.0 Step 2: Start the server Kafka uses … Continue reading

Rate this:

| Tagged | Leave a comment