Install Cloudera client on macOS

The version of Python and pip installed with macOS is older than the one required for the Cloudera client. You must install the latest version of Python before you install the Cloudera client.

Install Python on macOS

Install Python and verify if it is working.

  1. Download and install the latest version of Python for Mac OS X from the Python downloads page.
  2. Use the following commands to install pip:
    $ curl -O https://bootstrap.pypa.io/get-pip.py
    $ python3 get-pip.py --user
  3. Use the following commands to verify that Python and pip are correctly installed:
    python3 --version
    pip3 --version

Install Cloudera client after Python on macOS

Install the Cloudera CLI client and verify if it is working.

  1. Use the following command to install the Cloudera client:
    $ pip3 install cdpcli --user
  2. Check the location of your Python directory that contains the client executable files. For example, for Python 3.6.x the executable files are in the following directory:
    ~/Library/Python/3.6/bin
  3. Add the Python directory that contains the client executable files to the PATH environment variable. For example:
    echo "~/Library/Python/3.6/bin" | sudo tee -a /etc/paths
  4. Use the following command to verify that the Cloudera client is correctly installed:
    cdp --version

    To upgrade the Cloudera client to the latest version, run the following command:

    $ pip3 install cdpcli --upgrade --user