我要评分
获取效率
正确性
完整性
易理解

Installing YCSB

  1. Download the tool package.

    URL: https://mirrors.huaweicloud.com/kunpeng/archive/kunpeng_solution/native/YCSB-0.15.0.zip

  2. Upload the downloaded package to the /home directory on the pressure test server and decompress it.
    1
    unzip YCSB-0.15.0.zip
    

  3. Install dependencies.
    1. 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.

    2. Mount the OS image file.

      Mount the OS image using either of the following methods:

    • 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.

      1
      mount /dev/sr0 /mnt/
      
    • Upload the OS image to the /home directory and mount the image to the /mnt/ directory.
      1
      mount /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.

    1. Install dependencies.
      1
      yum install java maven -y