Distributed load allows users to load data from UFS to Alluxio cluster efficiently. This can be used to initialize the Alluxio cluster to be able to immediately serve cached data when running workloads on top of Alluxio.
Usage
There are two recommended ways to trigger distributed load:
job load CLI
The job load command can be used to load data from UFS (Under File System) to the Alluxio cluster. The CLI sends a load request to the Alluxio coordinator, which subsequently distributes the load operation to all worker nodes.
bin/alluxiojobload [flags] <path># Example outputProgressforloadingpath'/path':Settings:bandwidth:unlimitedverify:falseJobState:SUCCEEDEDFilesProcessed:1000BytesLoaded:125.00MBThroughput:2509.80KB/sBlockloadfailurerate:0.00%FilesFailed:0
For detailed usage of CLI, please refer to the job load documentation.
REST API
Similar to the CLI, the REST API can also be used to load data. Requests can be sent to any worker node, which would forward it to the Alluxio coordinator to distribute to all other worker nodes.
Submit the job by sending a POST request with the path to the directory and submit as the optType query parameter.
Example request and response:
Progress can be checked by sending a GET request with the same path and progress as the opType query parameter.
Example request and response:
The load operation can be terminated by sending a POST request with the same path and stop as the opType query parameter.