Go to file
Mick Semb Wever b3f9921881
Introduce SemVer4j for version representation, parsing and handling. And correct supported upgrade paths. Add v4X to Java DTests (after cassandra-4.0 branch was created)
Change upgrades from testing only a single path, to testing all upgrade paths that are defined as supported within the specified from-to range.
Change all upgrades to v40 and v4X to be open ended (i.e. implicit CURRENT version).

 patch by Mick Semb Wever; reviewed by Alex Petrov for CASSANDRA-16649
2021-07-12 22:09:40 +02:00
.build Follow up fixes to CASSANDRA-16633 2021-04-27 11:12:07 +01:00
.circleci Ninja fix, add header to the Circle LOWRES and HIGHRES config files 2021-04-19 14:13:49 -04:00
.jenkins Jenkins builds to provide link to nightlies archive, and remove the Jenkins plaintext reports 2021-02-08 12:05:14 +01:00
bin Allow EXTRA_CLASSPATH to work on tar/source installations 2020-02-26 11:46:32 -06:00
conf Update comment link to mx4j in cassandra-env.sh 2019-04-01 20:40:19 +11:00
debian Fix rat checking for files with missing license headers 2021-04-19 17:18:26 +02:00
doc Fix rat checking for files with missing license headers 2021-04-19 17:18:26 +02:00
examples merge from 2.1 2015-06-08 09:34:52 -05:00
ide Create Jenkins pipeline definition, and split out Jenkins test-all builds to individual builds for each of the test targets 2020-01-21 18:59:16 +01:00
interface Swap all references to 3.0 with 2.2 2015-05-14 17:16:54 +03:00
lib Revert "upgrade JNA version to 4.4.0" 2017-05-31 15:14:22 +02:00
pylib Fix rat checking for files with missing license headers 2021-04-19 17:18:26 +02:00
redhat Fix rat checking for files with missing license headers 2021-04-19 17:18:26 +02:00
src Make paging work for SELECT queries with GROUP BY 2021-02-15 11:56:48 +01:00
test Introduce SemVer4j for version representation, parsing and handling. And correct supported upgrade paths. Add v4X to Java DTests (after cassandra-4.0 branch was created) 2021-07-12 22:09:40 +02:00
tools Fix rat checking for files with missing license headers 2021-04-19 17:18:26 +02:00
.gitignore Provide a better failure message when the rat check fails 2021-04-23 14:56:00 +02:00
CASSANDRA-14092.txt Protect against overflow of local expiration time 2018-02-10 14:33:50 -02:00
CHANGES.txt Fix init script for debian Buster 2021-04-16 08:14:38 -05:00
CONTRIBUTING.md Fix rat checking for files with missing license headers 2021-04-19 17:18:26 +02:00
LICENSE.txt merge with 0.6 branch (post-850) 2010-03-26 16:31:52 +00:00
NEWS.txt Bump version to 2.2.17 2020-02-14 18:41:47 -06:00
NOTICE.txt Use ecj instead of javassist for UDFs 2015-05-15 17:28:21 +02:00
README.asc Fixed incorrect CREATE SCHEMA command in README.asc 2020-07-29 14:11:38 +02:00
build.properties.default Switch http to https URLs in build.xml 2019-05-22 15:03:43 -04:00
build.xml Introduce SemVer4j for version representation, parsing and handling. And correct supported upgrade paths. Add v4X to Java DTests (after cassandra-4.0 branch was created) 2021-07-12 22:09:40 +02:00
eclipse_compiler.properties Add Static Analysis to warn on unsafe use of Autocloseable instances 2015-05-27 17:53:26 -04:00

README.asc

Executive summary
-----------------

Cassandra is a partitioned row store.  Rows are organized into tables with a required primary key.

http://wiki.apache.org/cassandra/Partitioners[Partitioning] means that Cassandra can distribute your data across multiple machines in an application-transparent matter.  Cassandra will automatically repartition as machines are added and removed from the cluster.

http://wiki.apache.org/cassandra/DataModel[Row store] means that like relational databases, Cassandra organizes data by rows and columns.  The Cassandra Query Language (CQL) is a close relative of SQL.

For more information, see http://cassandra.apache.org/[the Apache Cassandra web site].

Requirements
------------
. Java >= 1.7 (OpenJDK and Oracle JVMS have been tested)
. Python 2.7 (for cqlsh)

Getting started
---------------

This short guide will walk you through getting a basic one node cluster up
and running, and demonstrate some simple reads and writes.

First, we'll unpack our archive:

  $ tar -zxvf apache-cassandra-$VERSION.tar.gz
  $ cd apache-cassandra-$VERSION

After that we start the server.  Running the startup script with the -f argument will cause
Cassandra to remain in the foreground and log to standard out; it can be stopped with ctrl-C.

  $ bin/cassandra -f

****
Note for Windows users: to install Cassandra as a service, download
http://commons.apache.org/daemon/procrun.html[Procrun], set the
PRUNSRV environment variable to the full path of prunsrv (e.g.,
C:\procrun\prunsrv.exe), and run "bin\cassandra.bat install".
Similarly, "uninstall" will remove the service.
****

Now let's try to read and write some data using the Cassandra Query Language:

  $ bin/cqlsh

The command line client is interactive so if everything worked you should
be sitting in front of a prompt:

----
Connected to Test Cluster at localhost:9160.
[cqlsh 2.2.0 | Cassandra 1.2.0 | CQL spec 3.0.0 | Thrift protocol 19.35.0]
Use HELP for help.
cqlsh>
----

As the banner says, you can use 'help;' or '?' to see what CQL has to
offer, and 'quit;' or 'exit;' when you've had enough fun. But lets try
something slightly more interesting:

----
cqlsh> CREATE KEYSPACE schema1
       WITH replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
cqlsh> USE schema1;
cqlsh:Schema1> CREATE TABLE users (
                 user_id varchar PRIMARY KEY,
                 first varchar,
                 last varchar,
                 age int
               );
cqlsh:Schema1> INSERT INTO users (user_id, first, last, age)
               VALUES ('jsmith', 'John', 'Smith', 42);
cqlsh:Schema1> SELECT * FROM users;
 user_id | age | first | last
---------+-----+-------+-------
  jsmith |  42 |  john | smith
cqlsh:Schema1>
----

If your session looks similar to what's above, congrats, your single node
cluster is operational!

For more on what commands are supported by CQL, see
https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile[the CQL reference].  A
reasonable way to think of it is as, "SQL minus joins and subqueries, plus collections."

Wondering where to go from here?

  * Getting started: http://wiki.apache.org/cassandra/GettingStarted
  * Join us in #cassandra on irc.freenode.net and ask questions
  * Subscribe to the Users mailing list by sending a mail to
    user-subscribe@cassandra.apache.org
  * Planet Cassandra aggregates Cassandra articles and news:
    http://planetcassandra.org/