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-070e1d6bbeaa98cd8 EBS(HVM)-backed 64-bit Amazon Linux 6.6.0
Asia Pacific (Tokyo) ami-041b8460219c7d50a EBS(PV)-backed 64-bit Amazon Linux 6.6.0
Asia Pacific (Seoul) ami-036f6bc2135a39a2b EBS(HVM)-backed 64-bit Amazon Linux 6.6.0
Asia Pacific (Seoul) ami-06725a7fb44e487a4 EBS(PV)-backed 64-bit Amazon Linux 6.6.0
Asia Pacific (Mumbai) ami-015e8072686d15bd6 EBS(HVM)-backed 64-bit Amazon Linux 6.6.0
Asia Pacific (Mumbai) ami-0061d29922be05c6b EBS(PV)-backed 64-bit Amazon Linux 6.6.0
Asia Pacific (Singapore) ami-0f9ced6c49a3bc315 EBS(HVM)-backed 64-bit Amazon Linux 6.6.0
Asia Pacific (Singapore) ami-0e2c00fae57ec0f2d EBS(PV)-backed 64-bit Amazon Linux 6.6.0
Asia Pacific (Sydney) ami-0324a810ee47b1a63 EBS(HVM)-backed 64-bit Amazon Linux 6.6.0
Asia Pacific (Sydney) ami-015d3111acc6e0b14 EBS(PV)-backed 64-bit Amazon Linux 6.6.0
Canada (Central) ami-0ab54279e09fdb206 EBS(HVM)-backed 64-bit Amazon Linux 6.6.0
Canada (Central) ami-0859c965262875bee EBS(PV)-backed 64-bit Amazon Linux 6.6.0
EU (Frankfurt) ami-0a3471a197a970cc5 EBS(HVM)-backed 64-bit Amazon Linux 6.6.0
EU (Frankfurt) ami-012712838dc243a6c EBS(PV)-backed 64-bit Amazon Linux 6.6.0
EU (Stockholm) ami-0ca91ee89a8731cb7 EBS(HVM)-backed 64-bit Amazon Linux 6.6.0
EU (Stockholm) ami-0e2dc2bf633669c83 EBS(PV)-backed 64-bit Amazon Linux 6.6.0
EU (Ireland) ami-0d6fec1cc4bdfd84a EBS(HVM)-backed 64-bit Amazon Linux 6.6.0
EU (Ireland) ami-09c15f00b309a845a EBS(PV)-backed 64-bit Amazon Linux 6.6.0
EU (London) ami-026f46d54278e59ee EBS(HVM)-backed 64-bit Amazon Linux 6.6.0
EU (London) ami-0511106ed57455dae EBS(PV)-backed 64-bit Amazon Linux 6.6.0
EU (Paris) ami-0dbf1d911baa7ce12 EBS(HVM)-backed 64-bit Amazon Linux 6.6.0
EU (Paris) ami-02ea5e87b9a7f5bc1 EBS(PV)-backed 64-bit Amazon Linux 6.6.0
South America (Sao Paolo) ami-0758695d58ed2c6da EBS(HVM)-backed 64-bit Amazon Linux 6.6.0
South America (Sao Paolo) ami-0593f7ad371b35787 EBS(PV)-backed 64-bit Amazon Linux 6.6.0
US East (Northern Virginia) ami-00cf506ca6bd8cceb EBS(PV)-backed 64-bit Amazon Linux 6.6.0
US East (Northern Virginia) ami-00a1b62886feb234b S3(PV)-backed 64-bit Amazon Linux 6.6.0
US East (Northern Virginia) ami-0a9b51eed1ed4ac66 EBS(HVM)-backed 64-bit Amazon Linux 6.6.0
US East (Northern Virginia) ami-0388350f039bf36e5 S3(HVM)-backed 64-bit Amazon Linux 6.6.0
US East (Ohio) ami-0f9c3a2d15032011f EBS(HVM)-backed 64-bit Amazon Linux 6.6.0
US East (Ohio) ami-02e15156f0a586ab7 EBS(PV)-backed 64-bit Amazon Linux 6.6.0
US West (Northern California) ami-0d71aa1ab135a0063 EBS(HVM)-backed 64-bit Amazon Linux 6.6.0
US West (Northern California) ami-0e9c7b16910d799fe EBS(PV)-backed 64-bit Amazon Linux 6.6.0
US West (Oregon) ami-0b24d9984528ecf89 EBS(HVM)-backed 64-bit Amazon Linux 6.6.0
US West (Oregon) ami-0a5fa5683b18ea4a8 EBS(PV)-backed 64-bit Amazon Linux 6.6.0

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. Click on "Import RDF... from a server-side file" and a dialog appears which has a large text box next to the word File:. This box is a file selection box. Its contents depends on what directory is being examined. The current directory is displayed just above the box after the words Select one or more server files to import from. You want the directory /home/ec2-user/examples/. Navigate there (using the '..' to go up to a parent directory if necessary). Select the file actors.ntriples and press OK in the lower right of the main dialog box. 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 © 2019 Franz Inc., All Rights Reserved | Privacy Statement Twitter Google+