Home | Mirror | Search |
http://incubator.apache.org/cassandra/
$ cd /srv/
$ cd /usr/local/src/ $ sudo wget -c http://apache.freelamp.com/cassandra/0.5.1/apache-cassandra-0.5.1-bin.tar.gz $ sudo tar zxvf apache-cassandra-0.5.1-bin.tar.gz $ cp -r /usr/local/src/apache-cassandra-0.5.1 /srv/ $ cd /srv/ $ sudo ln -s apache-cassandra-0.5.1 apache-cassandra $ cd apache-cassandra
Running Cassandra
$ bin/cassandra $ Listening for transport dt_socket at address: 8888 INFO - Saved Token not found. Using 70882909557229809272696372631016976044 INFO - Starting up server gossip
cli
$ bin/cassandra-clineo@db:/srv/apache-cassandra$ bin/cassandra-cli Welcome to cassandra CLI. Type 'help' or '?' for help. Type 'quit' or 'exit' to quit. cassandra>
cassandra> connect localhost/9160 Connected to localhost/9160
test
cassandra> show keyspaces Keyspace1 system
insert value
cassandra> set Keyspace1.Standard1['member']['name']='neo' Value inserted. cassandra> set Keyspace1.Standard1['member']['age']='27' Value inserted. cassandra> set Keyspace1.Standard1['member']['email']='openunix@163.com' Value inserted. cassandra> cassandra> get Keyspace1.Standard1['member'] => (column=name, value=neo, timestamp=1271070497471) => (column=email, value=openunix@163.com, timestamp=1271070498334) => (column=age, value=27, timestamp=1271070497519) Returned 3 results. cassandra>