Monday, March 17, 2014

Setting up Neo4j 2.0.1 Linux VM on Windows Azure

Neo4j 2.0.1 has been released as a Linux distribution on the Windows Azure VM Depot. The distribution runs on Ubuntu 12.04 LTS kernel. Follow the steps below to setup your Windows Azure VM.

Navigate to Windows Azure Management Portal

Click "Virtual Machines > Images"

Click "Browse VM Depot"

Find Neo4j 2.0.1 Image

Choose a storage account

Choose a storage account and region and click the checkmark. Wait for the VM image to finish copying. Once it is finished, proceed to the next step.

Click "Register"

Once the status of the VM image says "Pending Registration" click "Register"

Register the VM Image

Confirm the settings and click the checkmark.

Create a virtual machine

After registering the VM image, click "Virtual Machine Instances" and then click "Create Virtual Machine".

Click "From Gallery"

Click "From Gallery" to pull up your registered VM images.

Create VM from your images

Click "My Images", browse to your Neo4j 2.0.1 community image you created in the previous steps and click the checkmark.

Configure Virtual Machine

Choose a name for your virtual machine. Choose a username you will remember so that you can SSH into the machine to configure additional Neo4j server settings. Uncheck "Upload a compatible SSH key for authentication" and check "Provide a password". Choose a password you can remember. Click the checkmark once your done to continue.

Finalize VM configuration

Configure additional options and click the checkmark.

Configure endpoints

Make sure to configure your endpoints exactly as it is in the screenshot. You must configure port 7474, for both in and out, to be able to communicate with the Neo4j browser externally.

NOTE: Your Neo4j browser for this database will be open to the public. Make sure you take additional steps and precautions to secure your server.

Provision your VM

Wait for your virtual machine to finish provisioning. Once finished, proceed to the next step.

Get your DNS Name for your VM

Navigate to your newly provisioned virtual machine dashboard and copy the DNS Name.

Navigate to the Neo4j 2.0 browser

Copy and paste the DNS name of your virtual machine into a new browser window and add port 7474 to the end of the URL. Like this: http://[DNS-Name]:7474/

That's it. Your virtual machine is all setup. Enjoy!

To SSH into your new virtual machine, use either Putty on Windows or on Mac you can use SSH in the terminal. Use the username and password you provided in the virtual machine setup. To modify the Neo4j configurations you can find the configuration folder in the /etc/neo4j location from the root. This distribution runs Neo4j as a service, when you restart the VM the Neo4j server will automatically start. If you need more disk space, make sure to change the default database location to a different location. You can attach multiple virtual hard disks to your Windows Azure VM with additional space if needed. The OS image has about 18GB of space left for your database, if you need more than that then please consider setting up another disk with more space.

No comments :

Post a Comment