centos7.3下ScyllaDB1.6安装

前端之家收集整理的这篇文章主要介绍了centos7.3下ScyllaDB1.6安装前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
ScyllaDB安装配置

1.说明:
scylladb支持centos7.264位及以上版本
相关信息:http://docs.scylladb.com/getting-started/centos_rpm/#

2.安装
sudoyumremove-yabrt
sudoyuminstallepel-releasewget
sudowget-O/etc/yum.repos.d/scylla.repohttp://downloads.scylladb.com/rpm/centos/scylla-1.6.repo
sudoyuminstallscylla
sudoscylla_setup

Doyouwanttorunkernelversioncheck?
[YES/no]yes

DoyouverifyScyllaDBpackagesinstalled?
[YES/no]yes

DoyouwanttoenableScyllaDBservices?
[YES/no]no//这一步配置服务是否开机启动

DoyouwanttodisableSELinux?
[YES/no]yes

Doyouwanttosetupbootloaderoptions?
[YES/no]yes

DoyouwanttosetupNTP?
[YES/no]no

DoyouwanttosetupRAIDandXFS?
[YES/no]yes//是否配置单独的XFS分区作为RAID#测试时可以选no

>/dev/sdb1
/dev/sda1/dev/sdbtype‘done’tofinishselection.selected:/dev/sdb
>done

Doyouwanttosetupcoredump?
[YES/no]yes

Doyouwanttosetupsysconfig?
[YES/no]yes
>eth1//这个网口将被DPDK接管
。
DoyouwanttooptimizeNICqueuesettings?

DoyouwanttosetupIOconfiguration?
[YES/no]yes

Doyouwanttoinstallnodeexporter,thatexportsprometheusdatafromthenode?
[YES/no]yes

ScyllaDBsetupfinished.

启动服务:sudosystemctlstartscylla-server.service
查看:nodetoolstatus
进入数据库环境:cqlsh

###################################################
操作:
keyspace有两种策略:
createKEYSPACErootdata2WITHreplication={'class':'SimpleStrategy','replication_factor':2};	#复制策略:SimpleStrategy,冗余2份数据:
CREATEKEYSPACErootdata2WITHREPLICATION={'class':'NetworkTopologyStrategy','dc1':3};#复制策略:NetworkTopologyStrategy,冗余3份数据(配置可用)

查看key:
describerootdata2;

使用rootdata2创建表:
userootdata2;
createtableblog(idtimeuuid,titletext,contenttext,tagslist<text>,categorytext,primarykey(id));
INSERTINTOblog(id,title,tags)VALUES(now(),'cassandratabletest',['cassandra','table']);
INSERTINTOblog(id,'table'])USINGTTL222;

删除单个keyspace:
dropkeyspacerootdata;
####################################################

猜你在找的CentOS相关文章