Running AllegroGraph on Amazon EC2

 

1. Obtain an Amazon AWS account

If you are new to AWS, you can read the Getting Started with AWS Documentation.

2. Select an AMI

All you need for the next step is the "AMI" identifier in the second column of this table:

AWS Region AMI Operating System AllegroGraph version
Asia Pacific (Tokyo) ami-59d2f33e EBS(HVM)-backed 64-bit Amazon Linux 6.2.1
Asia Pacific (Tokyo) ami-63d6f704 EBS(PV)-backed 64-bit Amazon Linux 6.2.1
Asia Pacific (Seoul) ami-76be6c18 EBS(HVM)-backed 64-bit Amazon Linux 6.2.1
Asia Pacific (Seoul) ami-9bbb69f5 EBS(PV)-backed 64-bit Amazon Linux 6.2.1
Asia Pacific (Mumbai) ami-ecabd883 EBS(HVM)-backed 64-bit Amazon Linux 6.2.1
Asia Pacific (Mumbai) ami-bca4d7d3 EBS(PV)-backed 64-bit Amazon Linux 6.2.1
Asia Pacific (Singapore) ami-c7ff41a4 EBS(HVM)-backed 64-bit Amazon Linux 6.2.1
Asia Pacific (Singapore) ami-a9fa44ca EBS(PV)-backed 64-bit Amazon Linux 6.2.1
Asia Pacific (Sydney) ami-39000e5a EBS(HVM)-backed 64-bit Amazon Linux 6.2.1
Asia Pacific (Sydney) ami-99010ffa EBS(PV)-backed 64-bit Amazon Linux 6.2.1
Canada (Central) ami-f9f74b9d EBS(HVM)-backed 64-bit Amazon Linux 6.2.1
Canada (Central) ami-3cf14d58 EBS(PV)-backed 64-bit Amazon Linux 6.2.1
EU (Frankfurt) ami-fbc61594 EBS(HVM)-backed 64-bit Amazon Linux 6.2.1
EU (Frankfurt) ami-65c6150a EBS(PV)-backed 64-bit Amazon Linux 6.2.1
EU (Ireland) ami-37043c51 EBS(HVM)-backed 64-bit Amazon Linux 6.2.1
EU (Ireland) ami-b5033bd3 EBS(PV)-backed 64-bit Amazon Linux 6.2.1
EU (London) ami-ff0a1e9b EBS(HVM)-backed 64-bit Amazon Linux 6.2.1
EU (London) ami-e80b1f8c EBS(PV)-backed 64-bit Amazon Linux 6.2.1
South America (Sao Paolo) ami-38c1a254 EBS(HVM)-backed 64-bit Amazon Linux 6.2.1
South America (Sao Paolo) ami-bec0a3d2 EBS(PV)-backed 64-bit Amazon Linux 6.2.1
US East (Northern Virginia) ami-ba6ceeac EBS(PV)-backed 64-bit Amazon Linux 6.2.1
US East (Northern Virginia) ami-d467e5c2 S3(PV)-backed 64-bit Amazon Linux 6.2.1
US East (Northern Virginia) ami-ff6defe9 EBS(HVM)-backed 64-bit Amazon Linux 6.2.1
US East (Northern Virginia) ami-8064e696 S3(HVM)-backed 64-bit Amazon Linux 6.2.1
US East (Ohio) ami-52dafe37 EBS(HVM)-backed 64-bit Amazon Linux 6.2.1
US East (Ohio) ami-60d9fd05 EBS(PV)-backed 64-bit Amazon Linux 6.2.1
US West (Northern California) ami-3dd9835d EBS(HVM)-backed 64-bit Amazon Linux 6.2.1
US West (Northern California) ami-f7de8497 EBS(PV)-backed 64-bit Amazon Linux 6.2.1
US West (Oregon) ami-7de4751d EBS(HVM)-backed 64-bit Amazon Linux 6.2.1
US West (Oregon) ami-5de5743d EBS(PV)-backed 64-bit Amazon Linux 6.2.1

3. Start the AMI you selected above

To run an instance with one of the above AMIs go to the AWS Management Console and click on "AMIs" in the left sidebar. Select "Public Images" in the first Filter drop-down menu and enter allegrograph in the search box and press ENTER. You should now see something like this list of AllegroGraph AMIs.

Using the "Name" column, locate the version of AllegroGraph version you want to use. There are two types of AllegroGraph AMIs, instance-store (also called S3) and ebs. This is the type of storage for the root filesystem. You can safely select either.

With the AMI you want to start selected, click on the Launch button. This will guide you through the launch wizard, where you select the instance type (e.g., m1.xlarge) and various other configuration details.

If this is your first time using EC2, you should create a new Security Group in Step 6 of the Launch Wizard. We recommend opening ports 22 (SSH), 10035 (WebView), and 16000-17000 (session ports). . Ports 18000-19000 are used for replication and are optional.

Once you launch the AMI, it will take a few minutes for it to enter the running state. Once it does, you can copy the Public DNS name from the instance Description tab and paste it into a brower, adding :10035 to the end of the host name. In this case we will paste ec2-54-225-60-137.compute-1.amazonaws.com:10035 into a browser so we can login to AllegroGraph's WebView console using the user name "test" and password "xyzzy".

4. Using WebView

Now that we have the instance running and we are connected to it, let's exercise AllegroGraph through the WebView interface.

First, let's create a new repository called sample-actors. On the screen you see just after login, you can enter a repository name and press the Create button. Once created, you can click on the repository name in WebView. The result is an empty repository.

Now, let's load some data into the newly created repository. By clicking on "Import RDF... from a URL" we can enter a URL from which data will be loaded. The source we will use is http://s3.amazonaws.com/franz.com.files/actors.ntriples, which is an RDF file containing movie actors. Once the URL is pasted ad select "Multi-core loading" and press OK. The result is 166,497 statements loaded into our new respository. If we click on the "View Statements" link we will see a list of the first 100 triples in the database.

Copyright © 2017 Franz Inc., All Rights Reserved | Privacy Statement Twitter Google+