spring-cassandra-embedded

Java CI with Maven Quality Gate Status Coverage Maven Central Hex.pm

1. Quick Start

This chapter will show you how to get started run Cassandra embedded.

1.1 Prerequisite

Before run spring-cassandra-embedded, you must do download the last version of spring-cassandra-embedded using maven cli.

  1. Download artifact

    mvn dependency:get \
        -DremoteRepositories=http://repo1.maven.org/maven2/ \
        -DgroupId=com.github.mvallim \
        -DartifactId=spring-cassandra-embedded \
        -Dversion=0.0.4 \
        -Dtransitive=false
    

1.2 Run

  1. Run embedded Cassandra

    java -jar \
     -Dcassandra.storagedir=/tmp/cassandra \
     -Dcassandra.jmx.local.port=9043 \
     ~/.m2/repository/com/github/mvallim/spring-cassandra-embedded/0.0.4/spring-cassandra-embedded-0.0.4.jar
    

    Output should be

    Application........: spring-cassandra-embedded:0.0.4
    Application Listen.: localhost:9042
    Cassandra Version..: 3.11.6
    

1.3 Check ports

  1. Check the application ports

    1. Linux

      Run this command

      netstat -plnt
      

      Output should be

      (Not all processes could be identified, non-owned process info
       will not be shown, you would have to be root to see it all.)
      Active Internet connections (only servers)
      Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
      tcp        0      0 127.0.0.1:9042          0.0.0.0:*               LISTEN      18949/java
      tcp        0      0 127.0.0.1:38021         0.0.0.0:*               LISTEN      3518/java
      tcp        0      0 0.0.0.0:8081            0.0.0.0:*               LISTEN      18949/java
      tcp        0      0 0.0.0.0:38417           0.0.0.0:*               LISTEN      3518/java
      tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      -
      tcp        0      0 127.0.0.1:41623         0.0.0.0:*               LISTEN      15189/code
      tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      -
      tcp        0      0 127.0.0.1:43097         0.0.0.0:*               LISTEN      18949/java
      
    2. Windows

      Run this command

      netstat -ant -p tcp | findstr LISTENING
      

      Output should be

      TCP    127.0.0.1:9042        0.0.0.0:0       LISTENING   InHost
      

    You can see port 9042. (Cassandra server respectivaly)

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use GitHub for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the Apache License - see the LICENSE file for details