본문 바로가기
etc

cloudera hue 설치 (rhel8)

by kyeongseo.oh 2023. 9. 11.

cdp 7.1.8 이상에서 hue를 설치하기 위해서는 hue를 설치할 서버에 python3.8을 설치해야한다.

 

1. hue db 생성 및 hue 설치할 서버에 db 접근 권한 추가

create database hue DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE USER 'hue'@'%' IDENTIFIED BY 'hue';
CREATE USER 'hue'@'localhost' IDENTIFIED BY 'hue';
CREATE USER 'hue'@'edip3.dd.io' IDENTIFIED BY 'hue';
GRANT ALL PRIVILEGES ON hue.* TO 'hue'@'%';
GRANT ALL PRIVILEGES ON hue.* TO 'hue'@'localhost';
GRANT ALL PRIVILEGES ON hue.* TO 'hue'@'edip3.dd.io';
flush privileges;

CREATE USER 'hue'@'edip2.dd.io' IDENTIFIED BY 'hue';
GRANT ALL PRIVILEGES ON hue.* TO 'hue'@'edip2.dd.io';
flush privileges;

 

2. 필요 패키지 설치

yum install gcc openssl-devel bzip2-devel libffi-devel zlib-devel -y

 

3. python 3.8 build

cd /opt
curl -O https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz

tar -zxvf Python-3.8.12.tgz

cd /opt/Python-3.8.12

./configure --enable-shared --prefix=/usr

make

make install

cp --no-clobber ./libpython3.8.so* /lib64/

chmod 755 /lib64/libpython3.8.so*

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/bin

chmod -R 755 /usr/bin/python3.8

 

4. HUE DB로 MariaDB를 사용하는 경우 mysqlclient 라이브러리와 MariaDB Devel 패키지를 설치해야 한다.

yum install -y mariadb-devel.x86_64

wget https://files.pythonhosted.org/packages/50/5f/eac919b88b9df39bbe4a855f136d58f80d191cfea34a3dcf96bf5d8ace0a/mysqlclient-2.1.1.tar.gz
 
pip3 install mysqlclient-2.1.1.tar.gz

 

5. cloudera manager 설정

hue service를 추가한 후 cloudera manager에서 python3.8를 인식 할 수 있도록 PATH를 설정한다.

Cloudera Manager > Clusters > Hue > Configuration > Hue Service Environment Advanced Configuration Snippet (Safety Valve)

key : PATH
value : /usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:

'etc' 카테고리의 다른 글

mariadb binary log expire 설정  (0) 2023.09.12
prometheus, grafana, pushgateway 설치  (0) 2023.09.11
taskfile  (0) 2023.08.05
mariadb data retention  (0) 2023.07.29
kubeflow  (0) 2023.01.18

댓글