0. 환경
OS: Centos 6
uname : Linux HyBoostF80 2.6.32-696.3.1.el6.x86_64 #1 SMP Tue May 30 19:52:55 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
1. 기본 RPM 설치 (http://cassandra.apache.org/download/)
Installation from RPM packages
- For the
<release series>
specify the major version number, without dot, and with an appendedx
. - The latest
<release series>
is311x
. - For older releases, the
<release series>
can be one of30x
,22x
, or21x
. (Not all versions of Apache Cassandra are available, since building RPMs is a recent addition to the project.)
- Add the Apache repository of Cassandra to
/etc/yum.repos.d/cassandra.repo
, for example for the latest 3.11 version:
- Install Cassandra, accepting the gpg key import prompts:
Start Cassandra (will not start automatically):
Systemd based distributions may require to run systemctl daemon-reload
once to make Cassandra available as a systemd service. This should happen automatically by running the command above.
Make Cassandra start automatically after reboot:
Please note that official RPMs for Apache Cassandra only have been available recently and are not tested thoroughly on all platforms yet. We appreciate your feedback and support and ask you to post details on any issues in the corresponding Jira ticket.
2. cqlsh 에러 처리(https://stackoverflow.com/questions/35197362/unable-to-open-cqlsh-apache-cassandra-importerror-no-module-named-cqlshlib)
다음과 같이 에러가 나오면
---------------------------------------------------------------------------------------------------------
./cqlsh.py
Traceback (most recent call last):
File "./cqlsh.py", line 168, in <module>
from cqlshlib import cql3handling, cqlhandling, pylexotron, sslhandling, cqlshhandling
ImportError: No module named cqlshlib
cqlshlib 라이브러리를 찾을수 없다는 에러이다..
cqlsh.py 파일을 열어서
---------------------------------------------------------------------------------------------------------
... import sys ... from uuid import UUID sys.path.append("
/usr/lib/python2.7/site-packages
") #
cqlshlib 파일의 위치를 찾아서 넣어준다.
---------------------------------------------------------------------------------------------------------
'[IT] 리눅스' 카테고리의 다른 글
[리눅스] 네트워크 관련 커널 변수 (0) | 2017.12.13 |
---|---|
CentOS yum repository mirror 구축하기 (0) | 2017.11.10 |
[Linux] 많인 파일이 있는 폴더 내 파일 지우기 (0) | 2017.09.12 |
[CenOS] GUI 원격 접속 (0) | 2017.06.20 |
[Ubuntu] "Failed to start session" 과 함께 로그인이 안될때 (0) | 2017.03.02 |