'2016/11/21'에 해당되는 글 1건

  1. 2016.11.21 [cassandra] cqlsh 팁

[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>




Posted by '김용환'
,