Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added example usage for multiple servers.

Added Troubleshooting section.
  • Loading branch information...
commit 2f18a36624a265900576efbf63ec77977ed45c5f 1 parent 6730479
@roycamp roycamp authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 README.mkd
View
18 README.mkd
@@ -86,10 +86,15 @@ http://localhost:35871/flumeconfig.jsp), you will use a sink like:
`simpleCassandraSink("Keyspace1", "FlumeData", "FlumeIndexes", "localhost:9160")`
+For multiple servers use:
+
+`simpleCassandraSink("Keyspace1", "FlumeData", "FlumeIndexes", "localhost:9160", "hostname2:9160", "hostname3:9160")`
+
If you're new to flume and you want to test that the plugin works, I recommend
using a Source like `asciisynth(20, 100)`. You should see 20 corresponding entries
in each of the column families if you use `list` in cassandra-cli.
+
#### How it Works
When the Cassandra sink receives an event, it does the following:
@@ -105,3 +110,16 @@ This allows you to easily fetch all logs for a slice of time. Simply use
something like get_slice() on the index column family to get the uuids you
want for a particular slice of time, and then multiget the data column
family using those uuids as the keys.
+
+
+#### Troubleshooting
+
+"No Cassandra servers available" Exception when trying to write data to a single server setup.
+
+Your keyspace may of defaulted to the `org.apache.cassandra.locator.NetworkTopologyStrategy`
+replication strategy resulting in Cassandra being unable to successfully commit. You can check
+using `describe Keyspace1` on the cassandra-cli. Try using the following create keyspace
+statement instead:
+
+`create keyspace Keyspace1 with placement_strategy = 'org.apache.cassandra.locator.SimpleStrategy' and strategy_options = {replication_factor:1};`
+
Please sign in to comment.
Something went wrong with that request. Please try again.