Enabling KSAL for HDFS
This section describes how to enable the KSAL EC algorithm to further improve HDFS EC performance.
Ensure that KSAL has been installed in the compilation environment. For details, see Installing the KSAL Package.
- Open the Hadoop source code directory.
1cd ../hadoop-3.1.0
- Obtain the patch file from https://gitee.com/kunpeng_compute/hadoop/blob/hdfs-ec-24.0.0/hdfs-ksal-0001.patch.
- Use a transfer tool to upload the patch to the ../hadoop-3.1.0/ directory.
- Apply the patch.
1patch -p1 < hdfs-ksal-0001.patch
- Compile the Hadoop source code and deploy Hadoop. For details, see Compiling Hadoop and Deploying Hadoop.
- Check whether KSAL is enabled for HDFS.
1hadoop checknative
Parent topic: KSAL EC Acceleration