본문 바로가기

cassandra5

Cassandra db 로컬설치 Cassandra db 로컬설치 2011. 5. 28.
Cassandra config file >> cassandra 폴더안의 conf 폴더를 열어 storage-conf.xml 파일을 열어본다. 1. keyspace 만들기 - 파일 내역중 엘레먼트내에 엘레먼트를 구성한다. ※ 디폴트로 들어있는 엘레먼트를 참조하여서... 2. column family 만들기 - 엘레먼트내에 엘레먼트를 구성한다. ※ 디폴트로 들어있는 엘레먼트를 참조하여서... 2011. 3. 16.
Cassandra 명령어 - 2 1. set - 기능 : 데이터 넣기, 수정 - 문법 set . [''] ['']='value' set . [''] [''] ['']='value' - 예시 set Keyspace1.Standard1 ['key_1'] ['first_name']='kang' set Keyspace1.Standard1 ['key_1'] ['first_name']='sin' - 비고 * 하나의 column family()에는 중복된 중복된 키값()이 들어갈 수 없다. * 같은 키값에 같은 컬럼명으로 호출된 set은 추가가 아니라 수정이 일어난다. 2. get - 기능 : 데이터 얻기 - 문법 get . [''] get . [''] [''] get . [''] [''] get . [''] [''] [''] - 예시 get Ke.. 2011. 3. 16.
Cassandra 명령어 - 1 1. 명령어 리스트 보기 cassandra>? or cassandra>help 2. 서버 연결하기 cassandra>connect 127.0.0.1/9160 - 연결하고 싶은 아이피와 포트로 명령어를 실행하면 된다. 3. 연결 종료하기 cassandra>exit or cassandra>quit 4. keyspace 속성 보기 cassandra>describe keyspace system - 보고 싶은 keyspace name을 넣은명 된다. 5. config file 내용 보기 cassandra>show config file 6. cluster 이름 보기 cassandra>show cluster name 7. keyspace 리스트 보기 cassandra>show keyspaces 8. api 버전 보기.. 2011. 3. 16.