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

Installing Python Dependencies

Greenplum needs to use Python in performing management and maintenance tasks, such as backup and restoration, and performance monitoring. Before compiling and installing Greenplum, install the Python dependencies to ensure that Greenplum can run properly.

  1. Install pip.
    1. Go to the installation directory and download the pip installation script.
      1
      2
      3
      mkdir -p /opt/tool
      cd /opt/tool
      curl -o get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py
      
    2. Install pip.
      1
      python2 get-pip.py
      
  2. Install Setuptools.
    1. Go to the installation directory and download the Setuptools source code.
      1
      2
      3
      cd /opt/tool
      
      wget https://codeload.github.com/pypa/setuptools/tar.gz/refs/tags/v29.0.1
      
    2. Install Setuptools.
      1
      2
      3
      cd setuptools/
      python bootstrap.py
      python setup.py install
      
  3. Install psutil.

    psutil 5.7.0 is recommended for Greenplum 5.11.3 and 6.0.0, and psutil 5.8.0 is recommended for Greenplum 6.12.1. This step uses psutil 5.7.0 as an example.

    1. Download the psutil source code.
      1
      2
      cd /opt/tool
      wget https://files.pythonhosted.org/packages/c4/b8/3512f0e93e0db23a71d82485ba256071ebef99b227351f0f5540f744af41/psutil-5.7.0.tar.gz
      
    2. Decompress the package and install psutil.
      1
      2
      3
      tar -zxvf psutil-5.7.0.tar.gz
      cd psutil-5.7.0
      python setup.py install
      
  4. Install PBR.

    PBR 5.4.4 is recommended for Greenplum 5.11.3 and 6.0.0, and PBR 5.6.0 is recommended for Greenplum 6.12.1. This step uses PBR 5.4.4 as an example.

    1. Download the PBR source code.
      1
      2
      cd /opt/tool
      wget https://files.pythonhosted.org/packages/98/8a/defa5215d2dcf98cc80f4783e951a8356e38f352f7a169ae11670dcb1f25/pbr-5.4.4.tar.gz
      
    2. Decompress the package and install PBR.
      1
      2
      3
      tar -zxvf pbr-5.4.4.tar.gz
      cd pbr-5.4.4
      python setup.py install
      
  5. Install LockFile.
    1. Download the LockFile source code.
      1
      2
      cd /opt/tool
      wget https://files.pythonhosted.org/packages/17/47/72cb04a58a35ec495f96984dddb48232b551aafb95bde614605b754fe6f7/lockfile-0.12.2.tar.gz
      
    2. Decompress the package and install LockFile.
      1
      2
      3
      tar -zxvf lockfile-0.12.2.tar.gz
      cd lockfile-0.12.2
      python setup.py install
      
  6. Install pycparser.
    1. Download the pycparser source code.
      1
      2
      cd /opt/tool
      wget https://files.pythonhosted.org/packages/0f/86/e19659527668d70be91d0369aeaa055b4eb396b0f387a4f92293a20035bd/pycparser-2.20.tar.gz
      
    2. Decompress the package and install pycparser.
      1
      2
      3
      tar -zxvf pycparser-2.20.tar.gz
      cd pycparser-2.20
      python setup.py install
      
  7. Install CFFI.

    CFFI 1.14.0 is recommended for Greenplum 5.11.3 and 6.0.0, and CFFI 1.15.0 is recommended for Greenplum 6.12.1. This step uses CFFI 1.14.0 as an example.

    1. Download the CFFI source code.
      1
      2
      cd /opt/tool
      wget https://files.pythonhosted.org/packages/05/54/3324b0c46340c31b909fcec598696aaec7ddc8c18a63f2db352562d3354c/cffi-1.14.0.tar.gz
      
    2. Decompress the package and install CFFI.
      1
      2
      3
      tar -zxvf cffi-1.14.0.tar.gz
      cd cffi-1.14.0
      python setup.py install
      
  8. Install Six.

    Six 1.14.0 is recommended for Greenplum 5.11.3 and 6.0.0, and Six 1.16.0 is recommended for Greenplum 6.12.1. This step uses Six 1.14.0 as an example.

    1. Download the Six source code.
      1
      2
      cd /opt/tool
      wget https://files.pythonhosted.org/packages/21/9f/b251f7f8a76dec1d6651be194dfba8fb8d7781d10ab3987190de8391d08e/six-1.14.0.tar.gz
      
    2. Decompress the package and install Six.
      1
      2
      3
      tar -zxvf six-1.14.0.tar.gz
      cd six-1.14.0
      python setup.py install
      
  9. Install bcrypt.

    bcrypt 3.1.7 is recommended for Greenplum 5.11.3 and 6.0.0, and bcrypt 3.2.0 is recommended for Greenplum 6.12.1. This step uses bcrypt 3.1.7 as an example.

    1. Download the bcrypt source code.
      1
      2
      cd /opt/tool
      wget https://files.pythonhosted.org/packages/fa/aa/025a3ab62469b5167bc397837c9ffc486c42a97ef12ceaa6699d8f5a5416/bcrypt-3.1.7.tar.gz
      
    2. Decompress the package and install bcrypt.
      1
      2
      3
      tar -zxvf bcrypt-3.1.7.tar.gz
      cd bcrypt-3.1.7
      python setup.py install
      
  10. Install PyNaCl.

    PyNaCl 1.3.0 is recommended for Greenplum 5.11.3 and 6.0.0, and PyNaCl 1.4.0 is recommended for Greenplum 6.12.1. This step uses PyNaCl 1.3.0 as an example.

    1. Download the PyNaCl source code.
      1
      2
      cd /opt/tool
      wget https://files.pythonhosted.org/packages/61/ab/2ac6dea8489fa713e2b4c6c5b549cc962dd4a842b5998d9e80cf8440b7cd/PyNaCl-1.3.0.tar.gz
      
    2. Decompress the package and install PyNaCl.
      1
      2
      3
      tar -zxvf PyNaCl-1.3.0.tar.gz
      cd PyNaCl-1.3.0
      python setup.py install
      
  11. Install cryptography.
    1. Download the cryptography source code.
      1
      2
      cd /opt/tool
      wget https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz
      
    2. Decompress the package and install cryptography.
      1
      2
      3
      tar -zxvf cryptography-2.8.tar.gz
      cd cryptography-2.8
      python setup.py install
      
  12. Install paramiko.

    paramiko 2.7.2 is recommended for Greenplum 5.11.3, paramiko 2.7.1 is recommended for Greenplum 6.0.0, and paramiko 2.8.0 is recommended for Greenplum 6.12.1. This step uses paramiko 2.7.2 as an example.

    1. Download the paramiko source code.
      1
      2
      cd /opt/tool
      wget https://files.pythonhosted.org/packages/cf/a1/20d00ce559a692911f11cadb7f94737aca3ede1c51de16e002c7d3a888e0/paramiko-2.7.2.tar.gz
      
    2. Decompress the package and install paramiko.
      1
      2
      3
      tar -zxvf paramiko-2.7.2.tar.gz
      cd paramiko-2.7.2
      python setup.py install
      
  13. Install ipaddress.
    1. Download the ipaddress source code.
      1
      2
      cd /opt/tool
      wget https://files.pythonhosted.org/packages/b9/9a/3e9da40ea28b8210dd6504d3fe9fe7e013b62bf45902b458d1cdc3c34ed9/ipaddress-1.0.23.tar.gz
      
    2. Decompress the package and install ipaddress.
      1
      2
      3
      tar -zxvf ipaddress-1.0.23.tar.gz
      cd ipaddress-1.0.23
      python setup.py install
      
  14. Install enum34.
    1. Download the enum34 source code.
      1
      2
      cd /opt/tool
      wget https://files.pythonhosted.org/packages/11/c4/2da1f4952ba476677a42f25cd32ab8aaf0e1c0d0e00b89822b835c7e654c/enum34-1.1.10.tar.gz
      
    2. Decompress the package and install enum34.
      1
      2
      3
      tar -zxvf enum34-1.1.10.tar.gz
      cd enum34-1.1.10
      python setup.py install
      
  15. Install Epydoc.
    1. Download the Epydoc source code.
      1
      2
      cd /opt/tool
      wget https://files.pythonhosted.org/packages/60/a7/666cb415b0f5d8d5c99f145e03a6005220090d7b77637871ac52c2cabcba/epydoc-3.0.1.tar.gz
      
    2. Decompress the package and install Epydoc.
      1
      2
      3
      tar -zxvf epydoc-3.0.1.tar.gz
      cd epydoc-3.0.1
      python setup.py install