CephFS

This guide describes how to configure Alluxio with CephFS as the under storage system. Alluxio supports two different implementations of under storage system for CephFS:

Prerequisites

Deploy Alluxio binary package

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

Install Dependences

According to ceph packages install to install below packages:

cephfs-java
libcephfs_jni
libcephfs2
$ ln -s /usr/lib64/libcephfs_jni.so.1.0.0 /usr/lib64/libcephfs_jni.so
$ ln -s /usr/lib64/libcephfs.so.2.0.0 /usr/lib64/libcephfs.so
$ java_path=`which java | xargs readlink | sed 's#/bin/java##g'`
$ ln -s /usr/share/java/libcephfs.jar $java_path/jre/lib/ext/libcephfs.jar

Download CephFS Hadoop jar

Basic Setup

Configure Alluxio to use under storage systems by modifying conf/alluxio-site.properties and conf/core-site.xml. If them do not exist, create the configuration files from the templates

cephfs

Modify conf/alluxio-site.properties to include:

cephfs-hadoop

Modify conf/alluxio-site.properties to include:

Modify conf/core-site.xml to include:

Running Alluxio Locally with CephFS

Start up Alluxio locally to see that everything works.

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

cephfs

An CephFS location can be mounted at a nested directory in the Alluxio namespace to have unified access to multiple under storage systems. Alluxio's Command Line Interface can be used for this purpose.

Issue the following command to use the ufs cephfs:

Run a simple example program:

Visit your cephfs to verify the files and directories created by Alluxio exist.

You should see files named like: In cephfs, you can visit cephfs with ceph-fuse or mount by POSIX APIs. Mounting CephFS

In Alluxio, you can visit the nested directory in the Alluxio. Alluxio's Command Line Interface can be used for this purpose.

cephfs-hadoop

An CephFS location can be mounted at a nested directory in the Alluxio namespace to have unified access to multiple under storage systems. Alluxio's Command Line Interface can be used for this purpose.

Issue the following command to use the ufs cephfs:

Run a simple example program:

Visit your cephfs to verify the files and directories created by Alluxio exist.

You should see files named like: In cephfs, you can visit cephfs with ceph-fuse or mount by POSIX APIs. Mounting CephFS

In Alluxio, you can visit the nested directory in the Alluxio. Alluxio's Command Line Interface can be used for this purpose.

Last updated