GlusterFS

Slack Docker Pulls GitHub edit source

This guide describes how to configure Alluxio with GlusterFS as the under storage system.

Initial Setup

The Alluxio binaries must be on your machine. You can either compile Alluxio, or download the binaries locally.

Configuring Alluxio

Configure Alluxio to use under storage systems by modifying conf/alluxio-site.properties. If it does not exist, create the configuration file from the template.

  1. cp conf/alluxio-site.properties.template conf/alluxio-site.properties

Assuming the GlusterFS bricks are co-located with Alluxio nodes, the GlusterFS volume is mounted at /mnt/gluster, the following configuration parameters need to be added to conf/alluxio-site.properties:

  1. alluxio.underfs.address=/mnt/gluster

Running Alluxio Locally with GlusterFS

Start up Alluxio locally to see that everything works.

  1. ./bin/alluxio format
  2. ./bin/alluxio-start.sh local

This should start an Alluxio master and an Alluxio worker. You can see the master UI at http://localhost:19999.

Run a simple example program:

  1. ./bin/alluxio runTests

Visit your GlusterFS volume to verify the files and directories created by Alluxio exist. For this test, you should see files named like:

  1. /mnt/gluster/default_tests_files/Basic_CACHE_THROUGH

To stop Alluxio, you can run:

  1. ./bin/alluxio-stop.sh local