공부집
Cassandra 본문
How to Install Apache Cassandra on Ubuntu 18.04 and CentOS 7
This guide presents instructions to deploy a scalable and development-driven NoSQL database with Apache Cassandra for both the Ubuntu 18.04 and CentOS 7 distros.
www.linode.com
yum install yum-utils -y
yum-config-manager --add-repo http://rpm.datastax.com/community
mkdir ~/.keys
curl -o repo_key http://rpm.datastax.com/rpm/repo_key
rpm --import repo_key
yum update && yum upgrade
yum install java dsc30 cassandra30-tools ntp
reboot
systemctl start cassandra
/usr/local/cassandra/bin/cassandra -f
cassandra-cli : 콘솔로 열기
show cluster name;
show keyspaces;
create keyspace TestKeyspace;
use TestKeyspace;
create column family User with
comparator=UTF8Type and
default_validation_class=UTF8Type and
key_validation_class=UTF8Type;
set User['test']['name']='Park'; //insert & update
get User['test']['name']; //select
del User['test']['name']; //delete
'프로그래밍 요약정리 > 기타 잡다한 것 (공통)' 카테고리의 다른 글
vagrant file 기본설정 (0) | 2019.04.26 |
---|---|
년도 표시 (0) | 2019.03.29 |