Google Dataproc
Last updated
Last updated
This guide describes how to configure Alluxio to run on .
is a managed on-demand service to run Presto, Spark, and Hadoop compute workloads. It manages the deployment of various Hadoop Services and allows for hooks into these services for customizations. Aside from the added performance benefits of caching, Alluxio enables users to run compute workloads against on-premise storage or a different cloud provider's storage such as AWS S3 and Azure Blob Store.
A project with Cloud Dataproc API and Compute Engine API enabled.
A GCS Bucket.
The gcloud CLI set up with necessary GCS interoperable storage access keys.
Note: GCS interoperability should be enabled in the Interoperability tab in .
A GCS bucket is required if mounting the bucket to the root of the Alluxio namespace. Alternatively, the root UFS can be reconfigured to be HDFS or any other supported under storage. Type of VM instance to be used for Alluxio Master and Worker depends on the workload characteristics. General recommended types of VM instances for Alluxio Master are n2-highmem-16 or n2-highmem-32. VM instance types of n2-standard-16 or n2-standard-32 enable use of SSD as Alluxio worker storage tier.
When creating a Dataproc cluster, Alluxio can be installed using an .
There are several properties set as metadata labels which control the Alluxio deployment.
A required argument is the root UFS address configured using alluxio_root_ufs_uri
. If set to LOCAL
, the HDFS cluster residing within the same Dataproc cluster will be used as Alluxio's root UFS.
Specify properties using the metadata key alluxio_site_properties
. Delimit multiple properties with a semicolon (;
).
Example 1: use google cloud storage bucket as Alluxio root UFS
Example 2: use Dataproc internal HDFS as Alluxio root UFS
The Alluxio deployment on Google Dataproc can customized for more complex scenarios by passing additional metadata labels to the gcloud clusters create
command.
The status of the cluster deployment can be monitored using the CLI.
Identify the instance name and SSH into this instance to test the deployment.
Test that Alluxio is running as expected
Alluxio is installed and configured in /opt/alluxio/
. Alluxio services are started as alluxio
user.
Spark, Hive, and Presto on Dataproc are pre-configured to connect to Alluxio.
can be enabled on paths in Alluxio for a root HDFS mount point using the metadata key alluxio_sync_list
. Specify a list of paths in Alluxio delimited using ;
.
Alternatively, when volumes such as are mounted, specify the metadata label alluxio_ssd_capacity_usage
to configure the percentage of all available SSDs on the virtual machine provisioned as Alluxio worker storage. Memory is not configured as the primary Alluxio storage tier in this case.
For further information, visit our Spark on Alluxio .
For further information, visit our Hive on Alluxio .
is the default Presto configuration with the installation home directory at /usr/lib/presto
. To use this mechanism, no additional configuration is needed for the Alluxio initialization action.
For further information, visit our Presto on Alluxio .