@@ -7,26 +7,30 @@ Follow these instructions to start a cluster on EC2 running ElasticInbox
7
7
Run the following commands from you local machine.
8
8
9
9
Set your AWS credentials as environment variables:
10
+
10
11
```
11
12
% export AWS_ACCESS_KEY_ID=...
12
13
% export AWS_SECRET_ACCESS_KEY=...
13
14
```
14
15
15
16
Download and install Whirr:
17
+
16
18
```
17
19
% curl -O http://www.apache.org/dist/incubator/whirr/whirr-0.6.0-incubating/whirr-0.6.0-incubating.tar.gz
18
20
% tar zxf whirr-0.6.0-incubating.tar.gz
19
21
% export PATH=$PATH:$(pwd)/whirr-0.6.0-incubating/bin
20
22
```
21
23
22
24
Create a password-less SSH keypair for Whirr to use:
25
+
23
26
```
24
27
% ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa_scm
25
28
```
26
29
27
30
### Install Whirr ElasticInbox Plugin
28
31
29
32
Build plugin from source:
33
+
30
34
```
31
35
% git clone git://github.com/elasticinbox/whirr-elasticinbox.git
32
36
% cd whirr-elasticinbox
@@ -39,6 +43,7 @@ Copy the generated JAR file to Whirr's lib directory.
39
43
40
44
The following command will start a cluster with 3 Cassandra nodes. To change this
41
45
number edit the elasticinbox-ec2.properties file. You may want to change recipe.
46
+
42
47
```
43
48
% whirr launch-cluster --config elasticinbox-ec2.properties
44
49
```
@@ -50,6 +55,7 @@ the cluster is ready to be used.
50
55
51
56
Create schema by running following command on one of the nodes (currently we cannot automate this step
52
57
due to limitation in Whirr, see WHIRR-221). Replace $PRIVATE_IP with private IP of that host (ifconfig eth0).
58
+
53
59
```
54
60
% $CASSANDRA_HOME/bin/cassandra-cli --host $PRIVATE_IP < /tmp/elasticinbox.cml
55
61
```
@@ -65,6 +71,7 @@ a random token, which will lead to hot spots.
65
71
66
72
Finally, when you want to shutdown the cluster, run the following command. Note
67
73
that all data and state stored on the cluster will be lost.
74
+
68
75
```
69
76
% whirr destroy-cluster --config elasticinbox-ec2.properties
70
77
```
0 commit comments