Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling and Installing PD

Placement Driver (PD) is used to manage to schedule the TiKV cluster.

  1. Obtain the PD source package.
    1
    2
    3
    4
    cd /home/
    git clone https://github.com.cnpmjs.org/pingcap/pd.git
    cd pd/
    git checkout v3.0.13
    
  2. Compile and install PD.
    1. Edit the go.mod file and comment out line 16.

    2. Edit the go.mod file. Because golang.org/x/text cannot access the resource, add the following content to line 49:
      1
      replace golang.org/x/text => github.com/golang/text v0.3.0
      

    3. Perform the compilation.
      1
      gmake