(RHEL 6 Compatible Only) Install Python 2.7 on Hue Hosts
Hue in CDH 6 requires Python 2.7, which is included by default in RHEL 7 compatible operating systems (OSes).
RHEL 6 compatible OSes include Python 2.6. You must install Python 2.7 on all Hue hosts before installing or upgrading to Cloudera Enterprise 6:
- RHEL 6
-
- Make sure that you have access to the Software Collections Library. For more information, see the Red Hat knowledge base article, How to use Red Hat Software Collections (RHSCL) or Red Hat Developer Toolset (DTS)?.
- Install Python 2.7:
sudo yum install python27
- Verify that Python 2.7 is installed:
source /opt/rh/python27/enable python --version
- CentOS 6
-
- Enable the Software Collections Library:
sudo yum install centos-release-scl
- Install the Software Collections utilities:
sudo yum install scl-utils
- Install Python 2.7:
sudo yum install python27
- Verify that Python 2.7 is installed:
source /opt/rh/python27/enable python --version
- Enable the Software Collections Library:
- Oracle Linux 6
-
- Download the Software Collections Library repository:
sudo wget -O /etc/yum.repos.d/public-yum-ol6.repo http://yum.oracle.com/public-yum-ol6.repo
- Edit /etc/yum.repos.d/public-yum-ol6.repo and make sure that enabled is set to 1, as
follows:
[ol6_software_collections] name=Software Collection Library release 3.0 packages for Oracle Linux 6 (x86_64) baseurl=http://yum.oracle.com/repo/OracleLinux/OL6/SoftwareCollections/x86_64/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck=1 enabled=1
For more information, see Installing the Software Collection Library Utility From the Oracle Linux Yum Server in the Oracle documentation.
- Install the Software Collections utilities:
sudo yum install scl-utils
- Install Python 2.7:
sudo yum install python27
- Verify that Python 2.7 is installed:
source /opt/rh/python27/enable python --version
- Download the Software Collections Library repository: