cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cassandra Wiki] Update of "GettingStarted" by JonathanEllis
Date Fri, 26 Jun 2009 18:09:06 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.

The following page has been changed by JonathanEllis:
http://wiki.apache.org/cassandra/GettingStarted

------------------------------------------------------------------------------
  
   1. edit `conf/storage-conf.xml` to your satisfaction.  By default it will run on localhost
and use `/var/cassandra` for data and logs (so create that directory and chown it appropriately
if you want to keep things there). If you use a different log and data directory you'll probably
also want to edit the log4j log location in conf/log4j.properties.
   1. `bin/cassandra` to start (`-f` to start in foreground.)
+  1. verify that thinks are working using the [CassandraCli command-line client]
-  1. `bin/cassandra-cli --host localhost --port 9160` to connect with the command-line client;
try setting and getting data to make sure things are working:
- {{{
-   Connected to localhost/9160
-   Welcome to cassandra CLI.
-   
-   Type 'help' or '?' for help. Type 'quit' or 'exit' to quit.
-   cassandra> set Table1.Standard1['jsmith']['first'] = 'John'
-   Statement processed.
-   cassandra> set Table1.Standard1['jsmith']['last'] = 'Smith' 
-   Statement processed.
-   cassandra> get Table1.Standard1['jsmith']
-   COLUMN_TIMESTAMP = 1241129537336; COLUMN_VALUE = Smith; COLUMN_KEY = last; 
-   COLUMN_TIMESTAMP = 1241129520503; COLUMN_VALUE = John; COLUMN_KEY = first; 
- }}}
  
  === Running on multiple nodes ===
  
@@ -57, +44 @@

  
   1. DataModel explains the Cassandra ColumnFamily data model
   1. You may want to edit `conf/log4j.properties`.  by default, even in background mode it
will log some things to stdout as it starts up.  you can take out the stdout appender if this
bugs you, and/or turn the default level from DEBUG down to INFO.
-  1. CassandraCli describes a simple Command-Line Interface to store and retrieve data.
   1. ThriftInterface gives examples for accessing and modifying data.  If you are writing
a Java client, Cassandra comes with libthrift.jar and the Thrift client classes you will need.
 Otherwise you will need to InstallThrift and generate the client code for your language of
choice.  (Thrift supports many languages, including C++, C#, Erlang, Haskell, Java, Objective
C, OCaml, Perl, PHP, Python, Ruby, and Squeak.)
   1. RunningCassandra explains how to start Cassandra with non-standard options
   1. ClientExamples gives client examples

Mime
View raw message