Copies documents from mongodb to elasticsearch
mvn clean package
Create a local file application.conf
with valid twitter credentials
twitter { oauth { consumerKey = "" consumerSecret = "" accessToken = "" accessTokenSecret = "" } }
Start up elasticsearch and mongodb with docker:
mvn -PdockerITs docker:start
Build with integration testing enabled, using your credentials
mvn clean test verify -DskipITs=false -DargLine="-Dconfig.file=`pwd`/application.conf"
Shutdown elasticsearch and mongodb when finished:
mvn -PdockerITs docker:stop
java -cp dist/mongo-elasticsearch-sync-jar-with-dependencies.jar -Dconfig.file=file://<location_of_config_file> org.apache.streams.example.elasticsearch.MongoElasticsearchSync
mvn -Pdocker -Ddocker.repo=<your docker host>:<your docker repo> docker:build docker:push
docker run mongo-elasticsearch-sync java -cp mongo-elasticsearch-sync-jar-with-dependencies.jar -Dconfig.url=http://<location_of_config_file> org.apache.streams.elasticsearch.example.MongoElasticsearchSync