Dear Wiki user, You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.
The "GettingStarted_draft" page has been changed by MakiWatanabe: http://wiki.apache.org/cassandra/GettingStarted_draft?action=diff&rev1=65&rev2=66 Comment: Cosmetic changes !DataStax's latest [[http://www.datastax.com/docs/1.0/index|Cassandra documentation]] covers topics from installation to troubleshooting. Documentation for older releases is also available. == Introduction == - This document aims to provide a few easy to follow steps to take the first-time user from installation, to running single node Cassandra. + 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 of nodes, but will run equally well on a single machine. This is a handy way of getting familiar with the software while avoiding the complexities of a larger system. == Step 0: Prerequisites and connection to the community == @@ -70, +70 @@ MAX_HEAP_SIZE="96M" HEAP_NEWSIZE="24M" }}} - If you find OutOfMemory exceptions or massive GCs with this configuration, increase these values. + If you face OutOfMemory exceptions or massive GCs with this configuration, increase these values. '''Don't start your production service with such tiny heap configuration!''' Note for Mac Uses: @@ -143, +143 @@ Now you can store data into ''Users'' column family. {{{ - [default@DEMO] set Users[utf8('1234')][utf8('name')] = utf8('scott tiger'); + [default@DEMO] set Users[utf8('1234')][utf8('name')] = utf8('scott'); Value inserted. Elapsed time: 10 msec(s). + [default@DEMO] set Users[utf8('1234')][utf8('password')] = utf8('tiger'); + Value inserted. + Elapsed time: 10 msec(s). [default@DEMO] }}} - You have inserted a row to Users column family. The row key is '1234', and the row has a column named 'name', and the value is 'scott tiger'. + You have inserted a row to Users column family. The row key is '1234', and we set the 2 columns in the row: column named 'name', and 'password'. 'utf8()' means to treat the data as UTF8 string. Refer to 'help set;' for more details. Now let's try to fetch data you inserted. {{{ [default@DEMO] get Users[utf8('1234')]; - => (column=6e616d65, value=73636f7474207469676572, timestamp=1329790977261000) + => (column=6e616d65, value=73636f7474, timestamp=1330051295937000) + => (column=70617373776f7264, value=7469676572, timestamp=1330051308368000) - Returned 1 results. + Returned 2 results. Elapsed time: 9 msec(s). [default@DEMO] }}} @@ -173, +177 @@ [default@DEMO] assume Users validator as utf8; Assumption for column family 'Users' added successfully. [default@DEMO] get Users['1234']; - => (column=name, value=scott tiger, timestamp=1329790977261000) + => (column=name, value=scott, timestamp=1330051295937000) + => (column=password, value=tiger, timestamp=1330051308368000) - Returned 1 results. + Returned 2 results. Elapsed time: 9 msec(s). [default@DEMO] }}}
