Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 52f2868

Browse files
author
Rustam Aliyev
committed
README markup fixes
1 parent 43267e5 commit 52f2868

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,30 @@ Follow these instructions to start a cluster on EC2 running ElasticInbox
77
Run the following commands from you local machine.
88

99
Set your AWS credentials as environment variables:
10+
1011
```
1112
% export AWS_ACCESS_KEY_ID=...
1213
% export AWS_SECRET_ACCESS_KEY=...
1314
```
1415

1516
Download and install Whirr:
17+
1618
```
1719
% curl -O http://www.apache.org/dist/incubator/whirr/whirr-0.6.0-incubating/whirr-0.6.0-incubating.tar.gz
1820
% tar zxf whirr-0.6.0-incubating.tar.gz
1921
% export PATH=$PATH:$(pwd)/whirr-0.6.0-incubating/bin
2022
```
2123

2224
Create a password-less SSH keypair for Whirr to use:
25+
2326
```
2427
% ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa_scm
2528
```
2629

2730
### Install Whirr ElasticInbox Plugin
2831

2932
Build plugin from source:
33+
3034
```
3135
% git clone git://github.com/elasticinbox/whirr-elasticinbox.git
3236
% cd whirr-elasticinbox
@@ -39,6 +43,7 @@ Copy the generated JAR file to Whirr's lib directory.
3943

4044
The following command will start a cluster with 3 Cassandra nodes. To change this
4145
number edit the elasticinbox-ec2.properties file. You may want to change recipe.
46+
4247
```
4348
% whirr launch-cluster --config elasticinbox-ec2.properties
4449
```
@@ -50,6 +55,7 @@ the cluster is ready to be used.
5055

5156
Create schema by running following command on one of the nodes (currently we cannot automate this step
5257
due to limitation in Whirr, see WHIRR-221). Replace $PRIVATE_IP with private IP of that host (ifconfig eth0).
58+
5359
```
5460
% $CASSANDRA_HOME/bin/cassandra-cli --host $PRIVATE_IP < /tmp/elasticinbox.cml
5561
```
@@ -65,6 +71,7 @@ a random token, which will lead to hot spots.
6571

6672
Finally, when you want to shutdown the cluster, run the following command. Note
6773
that all data and state stored on the cluster will be lost.
74+
6875
```
6976
% whirr destroy-cluster --config elasticinbox-ec2.properties
7077
```

0 commit comments

Comments
 (0)