Skip to main content
Version: 0.12.2


In this page, we explain how to use Hudi with JuiceFS.

JuiceFS configs

JuiceFS is a high-performance distributed file system. Any data stored into JuiceFS, the data itself will be persisted in object storage (e.g. Amazon S3), and the metadata corresponding to the data can be persisted in various database engines such as Redis, MySQL, and TiKV according to the needs of the scene.

There are three configurations required for Hudi-JuiceFS compatibility:

  1. Creating JuiceFS file system
  2. Adding JuiceFS configuration for Hudi
  3. Adding required JAR to classpath

Creating JuiceFS file system

JuiceFS supports multiple metadata engines such as Redis, MySQL, SQLite, and TiKV. And supports almost all object storage as data storage, e.g. Amazon S3, Google Cloud Storage, Azure Blob Storage.

The following example uses Redis as "Metadata Engine" and Amazon S3 as "Data Storage" in Linux environment.

Download JuiceFS client

$ JFS_LATEST_TAG=$(curl -s | grep 'tag_name' | cut -d '"' -f 4 | tr -d 'v')
$ wget "${JFS_LATEST_TAG}/juicefs-${JFS_LATEST_TAG}-linux-amd64.tar.gz"

Install JuiceFS client

$ mkdir juice && tar -zxvf "juicefs-${JFS_LATEST_TAG}-linux-amd64.tar.gz" -C juice
$ sudo install juice/juicefs /usr/local/bin

Format a JuiceFS file system

$ juicefs format \
--storage s3 \
--bucket https://<bucket>.s3.<region> \
--access-key <your-access-key-id> \
--secret-key <your-access-key-secret> \
redis://:<password>@<redis-host>:6379/1 \

For more information, please refer to "JuiceFS Quick Start Guide".

Adding JuiceFS configuration for Hudi

Add the required configurations in your core-site.xml from where Hudi can fetch them.

<description>Optional, you can also specify full path "jfs://myjfs/path-to-dir" with location to use JuiceFS</description>

You can visit here for more configuration information.

Adding JuiceFS Hadoop Java SDK

You can download latest JuiceFS Hadoop Java SDK from here (download the file called like juicefs-hadoop-X.Y.Z-linux-amd64.jar), and place it to the classpath. You can also compile it by yourself.

For example, if you use Hudi in Spark, please put the JAR in $SPARK_HOME/jars.