cassandra의 cassandra.yaml 이 버전마다 초기 값이 달라서 링크를 걸어본다.


1.0

http://docs.datastax.com/en/archived/cassandra/1.0/docs/configuration/node_configuration.html



1.2

http://docs.datastax.com/en/archived/cassandra/1.2/cassandra/configuration/configCassandra_yaml_r.html?hl=cassandra.yaml


2.1

https://docs.datastax.com/en/cassandra/2.1/cassandra/configuration/configCassandra_yaml_r.html?hl=commitlog_sync_period_in_ms



3.0

https://docs.datastax.com/en/cassandra/3.0/cassandra/configuration/configCassandra_yaml.html?hl=commitlog_sync

Posted by '김용환'
,



influxdb의 clustering은 무료 버전은 0.10 정도까지만 지원한다. 


현재 2017년 3월에는 상용 버전만 지원한다. 


https://docs.influxdata.com/influxdb/v1.2/high_availability/clusters/


Open-source InfluxDB does not support clustering. For high availability or horizontal scaling of InfluxDB, please investigate our commercial clustered offering, InfluxEnterprise.

'etc tools' 카테고리의 다른 글

[github] PR(pull request) 하기  (0) 2017.08.17
github page 웹으로 생성하기  (0) 2017.08.17
[git] git 저장소 변경하기  (0) 2017.03.16
[git] git log 범위  (0) 2016.08.24
[git] git hash 얻기  (0) 2016.08.24
Posted by '김용환'
,

[cassandra] cql

cassandra 2017. 3. 23. 00:01



주요 CQL 커맨드는 대략 다음과 같다.



CAPTURE : 커맨드 결과를 캡쳐해 특정 파일에 추가한다.


https://docs.datastax.com/en/cql/3.1/cql/cql_reference/capture_r.html


CAPTURE '~/mydir/myfile.txt'




CONSISTENCY:  현재 일관성 레벨 또는 주어진 레벨에서 표시하거나 일관성 레벨을 설정한다.


https://docs.datastax.com/en/cql/3.1/cql/cql_reference/consistency_r.html


CONSISTENCY




COPY : 카산드라에서 또는 카산드라로 CSV(컴마로 구분된 값) 데이터를 가져오고 내보낸다.


http://docs.datastax.com/en/cql/3.1/cql/cql_reference/copy_r.html



CREATE KEYSPACE test
  WITH REPLICATION = { 'class' : 'NetworkTopologyStrategy', 'datacenter1' : 1 };

USE test;

CREATE TABLE airplanes (
  name text PRIMARY KEY,
  manufacturer ascii,
  year int,
  mach float
);

INSERT INTO airplanes
  (name, manufacturer, year, mach)
  VALUES ('P38-Lightning', 'Lockheed', 1937, 0.7);
 

COPY airplanes (name, manufacturer, year, mach) TO 'temp.csv';







DESCRIBE : 연결된 카산드라 클러스터에 대한 정보, 클러스터에 저장된 데이터 객체를 제공한다.


https://docs.datastax.com/en/cql/3.3/cql/cql_reference/cqlshDescribe.html


DESC keyspaces








EXPAND : 쿼리 결과를 세로로 출력한다.


https://docs.datastax.com/en/cql/3.1/cql/cql_reference/expand.html



cqlsh:my_ks> EXPAND ON
             Now printing expanded output 

cqlsh:my_ks> SELECT * FROM users;








EXIT : cqlsh을 종료한다.


https://docs.datastax.com/en/cql/3.1/cql/cql_reference/exit_r.html





PAGING : 쿼리 페이징을 활성화 또는 비활성화한다.


https://docs.datastax.com/en/cql/3.1/cql/cql_reference/paging.html


PAGING  ON | OFF 






SHOW : 카산드라 버전, 장비, 현재 cqlsh 클라이언트 세션에 대한 추적 정보 보여준다.


http://docs.datastax.com/en/cql/3.1/cql/cql_reference/show_r.html



SHOW VERSION
| HOST 

| SESSION tracing_session_id









SOURCE : CQL 문을 포함하는 파일을 실행한다.


https://docs.datastax.com/en/cql/3.1/cql/cql_reference/source_r.html



SOURCE 'file'








TRACING :  추적 요청을 활성화 또는 비활성화한다.


https://docs.datastax.com/en/cql/3.1/cql/cql_reference/tracing_r.html



TRACING ON | OFF



Posted by '김용환'
,