Installing YCSB
- Download the tool package.
URL: https://mirrors.huaweicloud.com/kunpeng/archive/kunpeng_solution/native/YCSB-0.15.0.zip
- Upload the downloaded package to the /home directory on the pressure test server and decompress it.
1unzip YCSB-0.15.0.zip
- Install dependencies.
- Back up the original Yum repository files and write the new configuration to the repo file.
1 2 3
mv /etc/yum.repos.d/ /etc/yum.repos.d-bak mkdir /etc/yum.repos.d echo -e "[local]\nname=local\nbaseurl=file:///mnt\ngpgcheck=0\nenabled=1" > /etc/yum.repos.d/local.repo
Check whether the previous operation is successful.

- Mount the OS image file.
- Use the KVM to mount the image to the /mnt/ directory. If the system displays a message indicating that no image is available after you run the command, mount the image again and then run the command.
Mount the image to the /mnt/ directory.
1mount /dev/sr0 /mnt/
- Upload the OS image to the /home directory and mount the image to the /mnt/ directory.
1mount /home/CentOS-7-aarch64-Everything-1810.iso /mnt/
Change the .iso file name as required. The operation takes effect only once and becomes invalid after the restart of the OS.
- Install dependencies.
1yum install java maven -y
- Back up the original Yum repository files and write the new configuration to the repo file.
Parent topic: YCSB Test Guide (for MongoDB)