Cassandra官方介绍及安装
这个数据库有很高的伸缩性和可用性,你完全不需要向性能妥协.在硬件或者云设施上做修改
官网:Cassandra官网
一.简介
二.亮点
生产(PROVEN)
容错性(FAULT TOLERANT)
性能(PERFORMANT)
去中心化(DECENTRALIZED)
伸缩性(SCALABLE)
持久性(DURABLE)
一切尽在控制中(YOU'RE IN CONTROL)
灵活性(ELASTIC)
专家支持(PROFESSIONALLY SUPPORTED)
三.安装Cassandra
下载安装包cassandra
运行
[root@clicki-v4 apache-cassandra-2.2.6]# bin/cassandra
[root@clicki-v4 apache-cassandra-2.2.6]# bin/cqlsh 192.168.11.74
cqlsh>
- 配置
# vim conf/cassandra.yaml
data_file_directories:
- /data/db/cassandra
commitlog_directory: /data/logs/db/cassandra
saved_caches_directory: /data/db/cassandra/saved_caches
seed_provider:
- class_name: org.apache.cassandra.locator.SimpleSeedProvider
parameters:
# seeds is actually a comma-delimited list of addresses.
# Ex: "<ip1>,<ip2>,<ip3>"
- seeds: "172.16.0.10"
listen_interface: eth0
native_transport_port: 9042
rpc_interface: eth0
- 用法
cqlsh:clicki_v4> desc clicki_v4. //这样很好!!
app_visitor sdk_visitor visitor visitor_reload
cqlsh:clicki_v4> SELECT * from visito