This contains all the projects relating to the 4.0 API release of Atlas, a.k.a deer
. It replaces the deer branches on the other existing atlasapi/* repositories.
The repository is divided in 5 projects:
- atlas-api: the Atlas API 4.0 web-app containing HTTP controllers, query executors and model serializers.
- atlas-processing: the back-end web-app for running scheduled tasks.
- atlas-core: defines the model and interfaces on which atlas-api and atlas-processing rely and their common and base implementations.
- atlas-cassandra: Cassandra-based implementations of the core persistence interfaces.
- atlas-elasticsearch: elasticsearch-based implementations of the core index interfaces.
You will need:
-
Maven 3
-
Google’s protocol buffer compiler, protoc, on your path
-
ElasticSearch 0.90.0 (http://www.elasticsearch.org/downloads/0-90-0/)
-
The current version of the 2.0.x release of Cassandra (http://planetcassandra.org/cassandra/) and latest cqlsh
-
The latest version of MongoDB (http://www.mongodb.org/)
-
Make sure the protobuf library version specified in the atlas-cassandra/pom.xml matches the output of protoc --version
-
Make sure the elasticsearch version specified in the atlas-elasticsearch/pom.xml matches the the version you install.
-
Make sure the elasticsearch cluster name specified in elasticsearch.yml matches your elasticsearch.cluster (default in atlas-api/src/main/resources/config/environments/dev.properties is atlas_deer_dev)
-
Start Cassandra locally on the standard port
-
Start ElasticSearch
-
Run mvn package in the project directory
At this stage you hopefully have successfully obtained war files.
- Run cqlsh:
- create keyspace atlas_deer_dev with replication = { 'class': 'SimpleStrategy', 'replication_factor': 1 };
- cqlsh -k atlas_deer_dev -f atlas-cassandra/src/main/resources/atlas.schema
Finally:
- java -jar atlas-api/target/atlas-api.war