Skip to content

Examples of persisting Hazelcast data in PostgreSQL and Cassandra asynchronously.

License

Notifications You must be signed in to change notification settings

FlavioF/hazelcast-mapstore-postgres-cassandra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hazelcast-store-postgres-cassandra

This project contains Examples of persisting Hazelcast data in PostgreSQL and Cassandra asynchronously.

Pre-requisites

  • JDK 8
  • Maven 3.1.0 or newer
  • PostgreSQL 9.3
  • Cassandra 2.1.2

Build

Clone

git clone https://github.com/FlavioF/hazelcast-store-postgres-cassandra.git
cd hazelcast-store-postgres-cassandra

Configuration

Edit persistence.xml file located in src/test/resources/META-INF/persistence.xml with your PostgreSQL configuration

  <property name="javax.persistence.jdbc.databasename" value="yourpostgresdb" />      
  <property name="javax.persistence.jdbc.url" value="jdbc:postgresql://localhost:5432/yourpostgresdb" />      
  <property name="javax.persistence.jdbc.user" value="yourpostgresuser" />
  <property name="javax.persistence.jdbc.password" value="yourpassword" />

Run

mvn clean install -Dcassandra.ip=<your cassandra ip address>

About

Examples of persisting Hazelcast data in PostgreSQL and Cassandra asynchronously.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published