Child pages
  • Cassandra kezdő lépések

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
# adduser -g users -m cassandra
# su - cassandra
$ wget http://xeniadownloads.sotedatastax.hucom/ftp/mirrors/www.apache.org/cassandra/2.0.9/apachecommunity/dsc-cassandra-2.01.92-bin.tar.gz
$ tar xzvf apachedsc-cassandra-2.01.92-bin.tar.gz
# mkdir /var/lib/cassandra/
# chown cassandra:users /var/lib/cassandra/
# mkdir /var/log/cassandra/
# chown cassandra:users /var/log/cassandra/
# mkdir /var/run/cassandra
# chown cassandra:users /var/run/cassandra

 

Egy kicsit szerkesztünk a konfigurációs állományon, ahol meg kell adni azokat a gépneveket vagy IP címeket, amelyeken a SEED szerverek fognak futni:

Code Block
titleapache-cassandra-2.0.9/conf/cassandra.yaml
$ diff cassandra.yaml.orig cassandra.yaml
10c10
< cluster_name: 'Test Cluster'
---
> cluster_name: 'gacivs'
261c261
<           - seeds: "gacivs-test01,gacivs-test-02"
"127.0.0.1"
---
>           - seeds: "10.129.246.225,10.129.171.246,10.129.211.128,10.129.215.37,10.129.247.19"
367c367
< listen_address: gacivs-test01
localhost
---
> listen_address: 10.129.247.19
408c408
< rpc_address: gacivs-test01localhost
---
> rpc_address: 10.129.247.19

 

Ezek után indítsuk el a Cassandra példányokat (egyelőre előtérben, majd később faraghatunk hozzá indító scripteket):

...