•카산드라 공식 홈페이지에 가서 현재 이미지에서 보이는 부분의 카산드라 압축파일을 다운로드 합니다.
•다운로드 이후에 압축을 풀고(이왕이면 C:\ 혹은 D:\에 풀어주세요) bin 경로에 있는 cassandra.bat와 cassandra-cli.bat 를 실행하면 됩니다.
•여기서 cassandra.bat 는 서버이고 cassandra-cli.bat 는 클라이언트 입니다.
•간단한 카산드라 명령어 정리 데이터입니다.
카산드라 명령어 정리
Type 'help;' or '?' for help. // help 혹은 ?(도움말)
Type 'quit;' or 'exit;' to quit. // quit 혹은 exit(종료)
[default@unknown] ? //로그인 상태에서 '?'를 치시면 나옵니다.
Getting around:
? Display this help. //도움말을 보여 줍니다.
help; Display this help. //도움말을 보여줍니다.
help ;
Display command-specific help. //특정 명령에 대한 특정한 도움말을 보여줍니다.
exit; Exit this utility. // 유틸리티를 종료 합니다.
quit; Exit this utility. // 유틸리티를 종료 합니다.
Commands:
assume Apply client side validation. //클라이언트 측에 유효성을 검사
connect Connect to a Cassandra node. // 카산드라 노드에 접속합니다.
consistencylevel
Sets consistency level for the client to use. // 클라이언트를 사용할때 일관성의 레벨을 설정합니다.
count Count columns or super columns. // column이나 super column을 갯수를 샙니다.
create column family
Add a column family to an existing keyspace. // 이미 존재 하는 keyspace에 column family 를 추가 합니다.
create keyspace Add a keyspace to the cluster. // 현재의 cluster에 keyspace를 추가 합니다.
del Delete a column, super column or row. // super column 혹은 row를 삭제 합니다.
decr Decrements a counter column. // 카운터 칼럼을 감소 시킵니다.
describe cluster Describe the cluster configuration. //cluster에 대해 설명합니다.
describe keyspace
Describe a keyspace and it's column families. // keyspace와 keyspace의 column family에 대해 설명합니다.
drop column family Remove a column family and it's data. // column family 를 삭제 합니다.
drop keyspace Remove a keyspace and it's data. // keyspace를 삭제 합니다.
drop index
Remove an existing index from specific column. // 특정한 index를 가진 column을 삭제 합니다.
get Get rows and columns. // 데이터를 가져 옵니다.
incr Increments a counter column. // 카운터 column을 증가 시킵니다.
list List rows in a column family. // column family 의 row목록을 보여 줍니다.
set Set columns. // column을 작성합니다.
show api version Show the server API version. // API 의 버전을 보여 줍니다
show cluster name Show the cluster name. // 현재 cluster의 이름을 보여줍니다
show keyspaces
Show all keyspaces and their column families. // 모든 keyspace와 column family를 보여 줍니다.
show schema
Show a cli script to create keyspaces and column families.
// 클라이언트 스크립트로 만들어진 keyspace와 column family를 보여 줍니다.
truncate Drop the data in a column family. // column family의 데이터를 삭제 합니다.
update column family Update the settings for a column family. // column family 의 설정을 변경합니다.
update keyspace Update the settings for a keyspace. // keyspace의 설정을 변경합니다.
use Switch to a keyspace. // keyspace를 변경합니다.
'DB > Cassandra' 카테고리의 다른 글
카산드라 API를 통해 접근 (0) | 2012.06.07 |
---|---|
Cassandra + maven (0) | 2012.06.07 |
4.3.3 데이터 삽입, 출력 해보기 (0) | 2012.06.07 |
카산드라 명령어 쉽게이해하기 (0) | 2012.06.07 |
Cassandra (0) | 2012.06.07 |