You can see in other blogs how to install ansible on Ubuntu, this time it is just shown how to install DSE using Ansible.
REQUIREMENTS:
You need to be registered at Datastax so you could get an user/passwd to get Datastax DSE.
It is assumed that you already have Ansible configured and have a servers group named "dse.
You can follow follow post to install ansible: http://kozlex.blogspot.mx/2013/04/installing-and-executing-ansible-on.html
Do a quick test:
$ ansible dse -m ping -u ubuntu
10.40.207.50 | success >> {
"changed": false,
"ping": "pong"
}
Enable Solr and Hadoop at SDE
REQUIREMENTS:
You need to be registered at Datastax so you could get an user/passwd to get Datastax DSE.
It is assumed that you already have Ansible configured and have a servers group named "dse.
You can follow follow post to install ansible: http://kozlex.blogspot.mx/2013/04/installing-and-executing-ansible-on.html
Do a quick test:
$ ansible dse -m ping -u ubuntu
10.40.207.50 | success >> {
"changed": false,
"ping": "pong"
}
To install DSE on ubuntu, we need to make sure that:
- JNA is installed
- Oracle java6 is installed
- You have a Datastax user/password. Get it from: http://www.datastax.com/download/register
Installing JNA:
ansible dse -a "sudo apt-get install libjna-java" -u ubuntu -y
Installing Java6 on Ubuntu 12.04 x64:
First enable non-interctive mode
# echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections
# echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
Install Java:
# sudo apt-get install oracle-java6-installer -y
make sure java is running:
# java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
1. Add to sources list datastax repository with your user/passwd and install dse:
# deb http://your.user.name_company.com:dRteasd34DW@debian.datastax.com/enterprise stable main
curl -L http://debian.datastax.com/debian/repo_key | sudo apt-key add -
# sudo apt-get update
# sudo apt-get install dse-full -y
Enable Solr and Hadoop at SDE
To enable Solr and Hadoop follow variables need to be set to ‘1’ at /etc/default/dse config file:
HADOOP_ENABLED=1SOLR_ENABLED=1
Start Datastax Enterprise.
Start the service with:
# sudo dse cassandra -s
2. Open new terminal and verify DSE is running and operational.
# sudo dsetool ring -h localhost
Output should look similar to the example below:Address DC Rack Status State Load Owns Token127.0.0.1 Solr rack1 Up Normal 9.29 MB 100.00% 33015982249869676890
# sudo /etc/init.d/dse stop
2. To verify that the cluster node is up and running execute:
# nodetool ring -h localhostNote: Ownership information does not include topology, please specify a keyspace.Address DC Rack Status State Load Owns Token127.0.0.1 Analytics rack1 Up Normal 4.38 MB 100.00% 42053256256062917965909574476650479427#
You can issue hadoop commands to make sure that it is working correctly:
# dse hadoop fs -mkdir my_test_dir
# dse hadoop fs -lsFound 1 itemdrwxrwxrwx - root root 0 2013-04-23 16:56 /user/root/my_test_dir#
If the directory created is listed then hadoop service works!
If you want to verify Hadoop deeper you can follow Hadoop demos:
No hay comentarios:
Publicar un comentario