#224 - Use external or embedded (if external Apache Cassandra is not available) for Cassandra examples.
We now check whether an external Apache Cassandra instance is available at localhost:9042 and use it to run the examples. Otherwise, if no external Apache Cassandra instance is available, we start an embedded Cassandra instance.
This commit is contained in:
committed by
Oliver Gierke
parent
1d3af17572
commit
d9f77903ef
@@ -19,18 +19,3 @@ public interface PersonRepository extends CrudRepository<Person, String> {
|
||||
```
|
||||
|
||||
The test cases in `PersonRepositoryIntegrationTest` oppose a plain `List` based query method with one that uses a `Stream` and shows how the former pulls all data into memory first and the iteration is done over the pre-populated list. The execution of the `Stream`-based method in contrast shows that the individual elements are read and converted while iterating the stream.
|
||||
|
||||
## Preparation
|
||||
|
||||
### Install Cassandra
|
||||
Before we can start we have to install Cassandra, e.g. via brew on Max OS.
|
||||
|
||||
More details can be found here: https://wiki.apache.org/cassandra/GettingStarted
|
||||
|
||||
### Start Cassandra
|
||||
```
|
||||
/usr/local/bin/cassandra -f
|
||||
```
|
||||
|
||||
That should be enough to get you started.
|
||||
Now you can simply type ```mvn clean install``` to run the example.
|
||||
|
||||
Reference in New Issue
Block a user