JanusGraph is a scalable graph database optimized for storing and querying graphs containing hundreds of billions of vertices and edges distributed across a multi-machine cluster. JanusGraph is a transactional database that can support thousands of concurrent users executing complex graph traversals in real time.
Instructions on how to add JanusGraph to Apache Ambari or Hortonworks Data Platform(HDP) as a service can be found below.
- To download the service and link it to Ambari run the following commands
VERSION=`hdp-select versions | head -n1 | cut -d'.' -f1,2`
git clone https://github.com/chupman/janusgraph-ambari-service.git /var/lib/ambari-server/resources/stacks/HDP/$VERSION/services/JANUSGRAPH
sudo service ambari-server restart
-
Once the ambari-server service has restarted login into the webui and click on the Actions dropdown on the lower lefthand side and select '+Add Service'. Click on the checkbox next to Janusgraph and then press next. Currently JanusGraph needs to be located on the same host as Solr. If solr is not yet installed you'll need to install it through the mpack.
-
Scroll down and check the box nex to JanusGraph and click next. If solr is not already installed it will be automatically added as a dependancy:
-
The assign masters screen shows you where all of your existing services are installed. You'll need to scroll down to find JanusGraph:
-
Select the host you want to install Janusgraph on from the dropdown. It's reccomended to install it on the same host as solr for performance:
-
There is currently no JanusGraph client so the Assign Slaves and Clients screen will be bypassed. Next you'll be able to customize your installation. No user supplied values are required:
-
You can customize environment details like target directories and your gremlin server configuration:
-
Once the JanusGraph installation has been successfully complete the sevices view should look like this: