반응형
블로그 이미지
개발자로서 현장에서 일하면서 새로 접하는 기술들이나 알게된 정보 등을 정리하기 위한 블로그입니다. 운 좋게 미국에서 큰 회사들의 프로젝트에서 컬설턴트로 일하고 있어서 새로운 기술들을 접할 기회가 많이 있습니다. 미국의 IT 프로젝트에서 사용되는 툴들에 대해 많은 분들과 정보를 공유하고 싶습니다.
솔웅

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함

카테고리

Install Cassandra 카산드라 설치하기

2015. 12. 9. 11:15 | Posted by 솔웅


반응형

카산드라를 설치하고 환경설정을 할 겁니다.

http://docs.datastax.com/en/playlist/doc/java/playlistSettingUp.html


그 전에 필요한 소프트웨어들이 미리 설치돼 있어야 합니다.



Required software 

The following software is required to build and run the Playlist tutorial example application:

저는 제 맥북에 설치해 보려고 합니다.


카산드라 설치하기


1. Download here

2. 다운로드 받은 dmg 파일을 더블 클릭한 후 아래 가이드 대로 진행한다.


Screen - Panel Recommendations and additional information
Setup Welcome page.
License Agreement DataStax Enterprise End User License Agreement
Install Options
Server Installation Directory

Linux: By default, DataStax Enterprise is installed in the /home/user/dse directory.

Mac OS X: By default, DataStax Enterprise is installed in the /usr/share/dse/ directory.

If you use the No Services option, you can change the location of the dse directory. If you install as a service, DataStax Enterprise can only be installed in the /usr/share/dse directory.

Install Type

Use Simple Install.

Installs DataStax Enterprise with the default path names and options.

Update System Updates some system packages and dependencies. Does not upgrade or install major components such as Oracle Java. Set to No unless you have root or sudo access.
Default Interface

Select 127.0.0.1.

Network interface for the DataStax Enterprise server.

Service Setup

Select No Services - installs the DataStax Enterprise server as a stand-alone process.

Start Services After Install

Select No.

A non-root install doesn't use services.

Node Setup
Node Type

Select Cassandra Node.

The following types of nodes are available:
Ring Name Use the default name or enter a name of your choice.
Seeds

Select 127.0.0.1.

Cassandra nodes use the seed node list for finding each other and learning the topology of the ring.

Setup
DataStax Agent

Select OpsCenter Address: 127.0.0.1.

The agent provides an interface between DataStax OpsCenter and DataStax Enterprise.

System Configuration Configuration overview and warnings about potential issues.
Ready to Install The install wizard installs the software.
Setup finish Post-installation tasks. To see the Pre-flight check results, select View Configuration Recommendations And Warnings




설치가 끝나면 바탕화면에 DataStax Enterprise shortcut 이 생깁니다.



이 shortcut 안으로 들어가면 start_cassandra , start_datastax_agent 를 포함해 여러가지 실행 파일들이 있습니다.



이렇게 하면 간단하게 카산드라 설치가 끝납니다.



터미널을 실행해서 카산드라가 설치된 폴더로 이동합니다.

숏컷을 실행하면 해당 폴더를 알 수 있습니다.


그 폴더에서 bin 폴더 안으로 들어갑니다.


그곳에서 아래와 같이 명령어를 칩니다.

(그 전에 숏컷에서 start_datastax_agent 를 실행해야 합니다.)


./nodetool status


그러면 아래와 같은 화면을 보실 수 있습니다.



이렇게 되면 DataStax Enterprise 이 실행중 이라는 얘기입니다.


이제 Playlist example code 를 받으려면 아래와 같이 받습니다.

$ git clone https://github.com/DataStaxDocs/playlist.git


그 다음 example application's dependencies 를 다운받으려면 메이븐을 사용해야 하는데 제 컴에 아직 메이븐을 설치하지 않아서 안 되네요.

$ cd playlist
$ mvn verify

이 부분은 메이븐을 설치한 다음에 시도해 봐야겠습니다.



반응형