hue ์ค์น ํ ๋ ์์ ์๋ ํ๋ก ์์ฝ์์คํ
๋ค์ด ์ด๋์ ๋ ์ค์น๋์๋ค๊ณ ๊ฐ์ ํ๊ณ ์งํํ๊ฒ ๋ค.
ํด์ ๊ฒฝ์ฐ ์ค์นํ๊ธฐ์ ์ ์ฌ์ ์์
์ ํด์ค์ผ ํ๋ค.
postgres๋ ๋ค๋ฅธ ํฌ์คํธ์์ ์ค์ ์ ๋ค๋ฃจ๊ธฐ๋ก ํ๊ณ ,
ํด ์ค์น ๊ฐ์ด๋ ์์๋ ํด์์ ์ฌ์ฉํ ๋ฐ์ดํฐ ๋ฒ ์ด์ค ์์ฑ์ ๋๋ง ๋ค๋ฃฐ ์์ ์ด๋ค.
์ฌ์ ์์
ํด๋ ํ์ด์ฌ์ ์ฌ์ฉํ๊ธฐ ๋๋ฌธ์ ํ๊ฒฝ๋ณ์๋ก ํ์ด์ฌ ๋ฒ์ ์ ์ก์์ค์ผํ๋ค.
ํ๊ฒฝ๋ณ์๋ .bash_profile ์ ์ถ๊ฐํ์๋ค.
ํ์ด์ฌ ํ๊ฒฝ๋ณ์ ์ถ๊ฐ
$ sudo vi ~/..bash_profile
export PYTHON_VER=python3.8
psycopg2 ์ค์น (์ ์ pip๋ ์ค์น๋์ด ์์ด์ผํจ)
$ pip install psycopg2
$ python setup.py build
$ sudo python setup.py install
$ pip install psycopg2-binary
nodejs ์ค์น (centos7 ๊ธฐ์ค ์ด๋ค.)
$ sudo yum install epel-release
$ sudo yum install nodejs
hue ์์ ์ฌ์ฉํ๋ package ์ค์น
$ sudo yum install ant asciidoc cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-plain gcc gcc-c++ krb5-devel libffi-devel libxml2-devel libxslt-devel make mysql mysql-devel openldap-devel python-devel sqlite-devel gmp-devel
cs
maven ์ค์น
$ wget https://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -P /tmp
$ sudo tar xf /tmp/apache-maven-3.6.3-bin.tar.gz -C /opt
$ sudo ln -s /opt/apache-maven-3.6.0 /opt/maven
$ sudo vi ~/.bash_profile
#MAVEN
export MAVEN_HOME=/opt/maven
export M2_HOME=$MAVEN_HOME
PATH=$PATH:$M2_HOME/bin:
$ source ~/.bash_profile
$ vi /opt/maven/conf/settings.xml
mirror ์ฌ์ดํธ ์ถ๊ฐํ๊ธฐ
maven build๊ฐ ํ์ํ ์ํ์น ์คํ์์ค๋ค์ด ์๋๋ฐ, centos์ ๊ฒฝ์ฐ yum install maven์ 3.0.5๊ฐ ์ค์น๋๋ค.
3.0.5๋ฒ์ ์ผ๋ก ๋น๋ ์ fail์ด ๋น๋ฒํ๊ธฐ๋ํ๊ณ , ๊ณต์์ฌ์ดํธ์์๋ 3.3์ด์ ๋ฒ์ ์ฌ์ฉํ๋ ๊ฒ์ ์ถ์ฒํ๊ธฐ ๋๋ฌธ์
์ํ์น ๋ฏธ๋ฌ ์ฌ์ดํธ์์ ์ต์ ๋ฒ์ maven์ ์ฌ์ฉํ๋ ๊ฒ์ ์ถ์ฒํ๋ค.
postgres์ hue db, user ์ถ๊ฐํ๊ธฐ
psql -U postgres
CREATE USER hue WITH PASSWORD 'hue';
CREATE DATABASE hue OWNER hue;
\l
ํด ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์ค๋ ํ์ธํ๊ธฐ
---
Solr ์ค์น
https://n-a-y-a.tistory.com/m/68
[Solr] Apache solr 8.5.0 ์ค์นํ๊ธฐ
ranger, atlas๋ฅผ ์ฌ์ฉํ๊ธฐ ์ํด ์ ์ค์นํด์ผํ๋ ์คํ์์ค์ด๋ค. https://archive.apache.org/dist/lucene/solr/8.5.0/ Index of /dist/lucene/solr/8.5.0 archive.apache.org ํด๋น ์ฌ์ดํธ์์ 8.5.0๋ฒ์ ์ ๋ค์ด ๋ฐ..
n-a-y-a.tistory.com
---
ํด ์ค์น
$ wget https://cdn.gethue.com/downloads/hue-4.0.1.tgz
$ tar -xvzf hue-4.0.1.tgz
$ ln -s hue-4.0.0 hue
$ cd hue
$ export PREFIX=/usr/local
$ make 7$ make install
ํด ์คํ
$ ./build/env/bin/supervisor &
$ netstat -nltp | grep 8888
์
๋ ฅ์ ์๋น์ค ์ฌ๋ผ์จ ๊ฒ ํ์ธํ ์ ์๋ค.
***HDFS***
***HIVE***
***HBASE***
๋ฑ ๊ฐ ์๋น์ค๋ค์ ํ์ฌ ์ฐ๊ฒฐ๋ ์ํ๋ ์๋๋ฏ๋ก
๋ง๋ config๊ฐ๋ค์ ์ฐพ์ ์์ ํด์ค์ผํ๋ค.
์ฐธ๊ณ ์ฌ์ดํธ
docs.gethue.com/administrator/installation/
Installation :: Hue SQL Assistant Documentation
docs.gethue.com