Cassandra Installation Test

Source: Internet
Author: User
Tags cassandra

description, I successfully installed the process record as long as the Readme.txt can be extracted from the directory, other online tutorials due to the wrong version will perform an error, such as encountered coding problems

#wget http://www.apache.org/dyn/closer.cgi?path=/cassandra/1.0.3/apache-cassandra-1.0.3-bin.tar.gz

#tar-ZXVF apache-cassandra-1.0.3-bin.tar.gz

#cd apache-cassandra-1.0.3

Mkdir-p/var/log/cassandra
Chown-r ' WhoAmI '/var/log/cassandra
Mkdir-p/var/lib/cassandra
Chown-r ' WhoAmI '/var/lib/cassandra

#bin/cassandra-f

#bin/cassandra-cli--host localhost

#create Keyspace Keyspace1;

#use Keyspace1;

#create column Family Users with Comparator=utf8type and Default_validation_class=utf8type and key_validation_class= Utf8type;

#set Users[jsmith][first] = ' John ';
#set Users[jsmith][last] = ' Smith ';
#set Users[jsmith][age] = long (42);
#get Users[jsmith];


=> (Column=last, Value=smith, timestamp=1287604215498000)
=> (Column=first, Value=john, timestamp=1287604214111000)
=> (Column=age, value=42, timestamp=1287604216661000)
Returned 3 results.

-----------------------------------------------

More references:

http://cassandra.apache.org/official website

http://www.dbthink.com/?p=372 a decentralized, structured storage system

http://product.china-pub.com/198403 "Cassandra Authority Guide"

http://product.china-pub.com/198207 "Cassandra Combat"

http://gpcuster.cnblogs.com/"Cassandra actual Combat" author blog

https://www.ibm.com/developerworks/cn/opensource/os-cn-cassandra/Distributed Key-value Storage System: Getting Started with Cassandra

http://www.cnblogs.com/gpcuster/tag/Cassandra/the Cold World

Cassandra distributed database, part 1th: Configuration, start-up and clustering

http://www.ibm.com/developerworks/cn/opensource/os-cn-cassandraxu1/

Cassandra distributed database, part 2nd: Data structure and reading and writing

http://www.ibm.com/developerworks/cn/opensource/os-cn-cassandraxu2/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.