ScyllaDB 安裝配置
1.說明:
scylladb支持centos7.2 64位 及以上版本
相關(guān)信息:http://docs.scylladb.com/getting-started/centos_rpm/#
2.安裝
sudo yum remove -y abrt
sudo yum install epel-release wget
sudo wget -O /etc/yum.repos.d/scylla.repo http://downloads.scylladb.com/rpm/centos/scylla-1.6.repo
sudo yum install scylla
sudo scylla_setup
Do you want to run kernel version check?
[YES/no]yes
Do you verify ScyllaDB packages installed?
[YES/no]yes
Do you want to enable ScyllaDB services?
[YES/no]no //這一步配置服務(wù)是否開機啟動
Do you want to disable SELinux?
[YES/no]yes
Do you want to setup bootloader options?
[YES/no]yes
Do you want to setup NTP?
[YES/no]no
Do you want to setup RAID and XFS?
[YES/no]yes //是否配置單獨的XFS分區(qū)作為RAID #測試時可以選no
> /dev/sdb1
/dev/sda1 /dev/sdb type ‘done’ to finish selection. selected: /dev/sdb
> done
Do you want to setup coredump?
[YES/no]yes
Do you want to setup sysconfig?
[YES/no]yes
> eth2 //這個網(wǎng)口將被DPDK接管
。
Do you want to optimize NIC queue settings?
Do you want to setup IO configuration?
[YES/no]yes
Do you want to install node exporter, that exports prometheus data from the node?
[YES/no]yes
ScyllaDB setup finished.
啟動服務(wù):sudo systemctl start scylla-server.service
查看:nodetool status
進(jìn)入數(shù)據(jù)庫環(huán)境:cqlsh
###################################################
操作:
keyspace有兩種策略:
create KEYSPACE rootdata2 WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 2}; #復(fù)制策略:SimpleStrategy,冗余2份數(shù)據(jù):
CREATE KEYSPACE rootdata2 WITH REPLICATION = { 'class' : 'NetworkTopologyStrategy', 'dc1' :3 }; #復(fù)制策略:NetworkTopologyStrategy,冗余3份數(shù)據(jù)(配置可用)
查看key:
describe rootdata2;
使用rootdata2創(chuàng)建表:
use rootdata2;
create table blog(id timeuuid , title text, content text, tags list<text>, category text, primary key(id));
INSERT INTO blog (id, title , tags ) VALUES ( now(), 'cassandra table test', ['cassandra','table']);
INSERT INTO blog (id, title , tags ) VALUES ( now(), 'cassandra table test', ['cassandra','table']) USING TTL 222;
刪除單個keyspace:
drop keyspace rootdata;
####################################################
當(dāng)前文章:centos7.3下ScyllaDB1.6安裝
分享路徑:http://chinadenli.net/article22/ggjjjc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供微信小程序、營銷型網(wǎng)站建設(shè)、網(wǎng)站營銷、網(wǎng)站排名、網(wǎng)頁設(shè)計公司、App開發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)