首页 > 代码库 > cassandra installation

cassandra installation

installation

推荐安装java native access提升casssandra内存的使用效率。

sudo apt-get install libjna-java

 

settings

修改所有节点的cassandra.yaml配置文件,位于/etc/cassandra, <install_location>/conf/

修改cassandra-rackdc.properties文件,声明数据中心和机架

 

ubtc01:~$ sudo service cassandra stopubtc02:~$ sudo service cassandra stop##删除系统keyspaceubtc01:~$ sudo rm -rf /var/lib/cassandra/data/system/*ubtc02:~$ sudo rm -rf /var/lib/cassandra/data/system/*##修改cassandra.yaml, cassandra-rackdc.properties##start seed node ubtc01 firstsudo service cassandra start##start ubtc02sudo service cassandra start##monitoringnodetool status

 

cassandra installation