[cassandra] cqlsh 팁

cassandra 2016. 11. 21. 13:16



cassandra의 cqlsh이 로컬호스트에 접속을 못할 수 있다면, 간단하게 alias로 작업할 수 있다. 



$ cqlsh

Connection error: ('Unable to connect to any servers', {'127.0.0.1': error(111, "Tried connecting to [('127.0.0.1', 9042)]. Last error: Connection refused")})




$ which cqlsh

/usr/bin/cqlsh



$ vi ~/.bashrc 

// 추가

alias cqlsh='/usr/bin/cqlsh 1.1.1.1'



$ source ~/.bashrc



이제 잘 된다. 


$ cqlsh

Connected to Story Common Cluster at ..

Use HELP for help.

cqlsh>




'cassandra' 카테고리의 다른 글

[cassadra] compaction 전략  (0) 2016.12.09
[cassandra] select count(*) 구하기  (0) 2016.12.07
[cassandra] read repair  (0) 2016.11.23
[cassandra] cqlsh 팁  (0) 2016.11.21
[cassandra] counter 테이블 예시 및 유의 사항  (0) 2016.11.17
[cassandra] insert는 update와 같다.  (0) 2016.11.16
Posted by 김용환 '김용환'

댓글을 달아 주세요