갈루아의 반서재



The Apache Cassandra Project

http://cassandra.apache.org/



빅 데이터 시대를 위한 NoSQL 핵심 가이드
국내도서>컴퓨터/인터넷
저자 : Tatsuya Sasaki / 손은영역
출판 : 로드북(Roadbook) 2011.12.30
상세보기



카산드라는 Java 를 기반으로 만들어진 소프트웨어이므로 우선 JDK 를 사용할 수 있어야 한다. 아래 링크에서 JDK 를 다운로드받는다.


JDK 6 update 37 버전

http://www.oracle.com/technetwork/java/javase/downloads/jdk6u37-downloads-1859587.html


이 중 각자 플랫폼에 맞는 파일을 받는다. 


 Java SE Development Kit 6 Update 37

You must accept the Oracle Binary Code License Agreement for Java SE to download this software.

Thank you for accepting the Oracle Binary Code License Agreement for Java SE; you may now download this software.

 

 Product / File Description

File Size

Download

 Linux x8665.43 MB   jdk-6u37-linux-i586-rpm.bin
 Linux x8668.44 MB   jdk-6u37-linux-i586.bin
 Linux x6465.65 MB   jdk-6u37-linux-x64-rpm.bin
 Linux x6468.71 MB   jdk-6u37-linux-x64.bin


http://download.oracle.com/otn-pub/java/jdk/6u37-b06/jdk-6u37-linux-i586-rpm.bin


파일을 다운로드받아 아래와 같이 설치한다. 


[root@abc root]# cd /opt/src

[root@abc src]# mv jdk-6u37-linux-i586-rpm.bin jdk.bin

[root@abc src]# chmod 755 jdk.bin

[root@abc src]# ./jdk.bin

Unpacking...

Checksumming...

Extracting...

UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).

  inflating: jdk-6u37-linux-i586.rpm

  inflating: sun-javadb-common-10.6.2-1.1.i386.rpm

  inflating: sun-javadb-core-10.6.2-1.1.i386.rpm

  inflating: sun-javadb-client-10.6.2-1.1.i386.rpm

  inflating: sun-javadb-demo-10.6.2-1.1.i386.rpm

  inflating: sun-javadb-docs-10.6.2-1.1.i386.rpm

  inflating: sun-javadb-javadoc-10.6.2-1.1.i386.rpm

준비 중...                  ########################################### [100%]

   1:jdk                    경고: /etc/.java/.systemPrefs/.system.lock(이)가 /etc/.java/.systemPrefs/.system.lock.rpmnew(으)로 생성되었습니다

경고: /etc/.java/.systemPrefs/.systemRootModFile(이)가 /etc/.java/.systemPrefs/.systemRootModFile.rpmnew(으)로 생성되었습니다

########################################### [100%]

Unpacking JAR files...

        rt.jar...

        jsse.jar...

        charsets.jar...

        tools.jar...

        localedata.jar...

        plugin.jar...

        javaws.jar...

        deploy.jar...

Installing JavaDB

준비 중...                  ########################################### [100%]

   1:sun-javadb-common      ########################################### [ 17%]

   2:sun-javadb-core        ########################################### [ 33%]

   3:sun-javadb-client      ########################################### [ 50%]

   4:sun-javadb-demo        ########################################### [ 67%]

   5:sun-javadb-docs        ########################################### [ 83%]

   6:sun-javadb-javadoc     ########################################### [100%]


Java(TM) SE Development Kit 6 successfully installed.


Product Registration is FREE and includes many benefits:

* Notification of new versions, patches, and updates

* Special offers on Oracle products, services and training

* Access to early releases and documentation


Product and system data will be collected. If your configuration

supports a browser, the JDK Product Registration form will

be presented. If you do not register, none of this information

will be saved. You may also register your JDK later by

opening the register.html file (located in the JDK installation

directory) in a browser.


For more information on what data Registration collects and

how it is managed and used, see:

http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html


Press Enter to continue.....



Done.

[root@abc src]#


이어서 카산드라를 설치한다

[root@abc root]# wget http://ftp.daum.net/apache/cassandra/0.7.10/apache-cassandra-0.7.10-bin.tar.gz

--15:05:53--  http://ftp.daum.net/apache/cassandra/0.7.10/apache-cassandra-0.7.10-bin.tar.gz

           => `apache-cassandra-0.7.10-bin.tar.gz'

Resolving ftp.daum.net... 211.62.252.36

Connecting to ftp.daum.net[211.62.252.36]:80... connected.

HTTP 요청을 보냅니다, 서버로부터의 응답을 기다림...200 OK

길이:   10,058,331 [application/x-gzip]


100%[====================================>] 10,058,331     3.11M/s    ETA 00:00


15:05:56 (3.10 MB/s) - `apache-cassandra-0.7.10-bin.tar.gz' saved [10,058,331/10,058,331]


[root@abc root]# tar -xvf apache-cassandra-0.7.10-bin.tar.gz

[root@abc root]# sudo mkdir -p /var/log/cassandra

[root@abc root]# sudo mkdir -p /var/lib/cassandra


카산드라를 구동한다


[root@smis root]# cd apache-cassandra-0.7.10

[root@smis apache-cassandra-0.7.10]# bin/cassandra -f



http://www.geilthings.com/wiki/Cassandra




빅 데이터 시대를 위한 NoSQL 핵심 가이드
국내도서>컴퓨터/인터넷
저자 : Tatsuya Sasaki / 손은영역
출판 : 로드북(Roadbook) 2011.12.30
상세보기