λ°˜μ‘ν˜•

HUE λ‹€μš΄λ‘œλ“œ

μ›ν•˜λŠ” 휴 μ„ νƒν•˜μ—¬ λ‹€μš΄λ‘œλ“œ
https://github.com/cloudera/hue/tags

 

GitHub - cloudera/hue: Open source SQL Query Assistant service for Databases/Warehouses

Open source SQL Query Assistant service for Databases/Warehouses - GitHub - cloudera/hue: Open source SQL Query Assistant service for Databases/Warehouses

github.com

 

Dependency λ¬΄ν•œκ³ ν†΅

mvn, database μ„€μΉ˜ν›„ 기본적인 μ„ΈνŒ…μ€ μ™„λ£Œ (hue 데이터 λ² μ΄μŠ€μ™€ μœ μ € 생성 μž‘μ—…κΉŒμ§€ !)

python pip upgrade

curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python get-pip.py
pip install --upgrade pip

python package μ„€μΉ˜

pip install psycopg2
pip install psycopg2-binary

OS 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
libffi-devel python-devel openssl-devel -y

SQLite 버전 μ—…κ·Έλ ˆμ΄λ“œ (hue django λ•Œλ¬Έμ— λ„ˆλ¬΄ μ•„λž˜λ²„μ „μΌμˆ˜λ‘ μ„€μΉ˜ μ•ˆλ¨)

https://kojipkgs.fedoraproject.org/packages/sqlite/

 

Index of /packages/sqlite

kojipkgs.fedoraproject.org

μ—¬κΈ°μ„œ λ§žλŠ” sqlite rpm, sqlite-devel rpm λ‹€μš΄λ‘œλ“œ

wget https://kojipkgs.fedoraproject.org/packages/sqlite/3.12.2/1.fc24/x86_64/sqlite-3.12.2-1.fc24.x86_64.rpm
wget https://kojipkgs.fedoraproject.org/packages/sqlite/3.12.2/1.fc24/x86_64/sqlite-devel-3.12.2-1.fc24.x86_64.rpm

rpm -Uvh sqlite-3.12.2-1.fc24.x86_64.rpm sqlite-devel-3.12.2-1.fc24.x86_64.rpm

HUE Build

desktop/devtools.mk μˆ˜μ •

DEVTOOLS += \
        ipython[7.10.0] \
        ipdb[0.13.9] \

휴 λΉŒλ“œ

cd ${HUE_SRC}
make apps

 

HUE Start

[hue database 동기화] build/env/bin/hue migrate 
[hue server μ‹œμž‘] build/env/bin/hue runserver 0.0.0.0:8000
[hue login] user id/ password -admin/admin
[hdfs user 생성] hdfs dfs -mkdir /user/admin
[hdfs user dir κΆŒν•œλ³€κ²½] hdfs dfs -chown -R admin:admin /user/admin

 

HUE Configs

vi ${HUE_SRC}/desktop/conf/pseudo-distributed.ini
  [[database]]
    engine=postgresql_psycopg2
    host=1.2.3.4
    name=hue
    port=5432
    user=hue
    password=hue


[hadoop]
  # Configuration for HDFS NameNode
  # ------------------------------------------------------------------------
  [[hdfs_clusters]]
    # HA support by using HttpFs
    [[[default]]]
      # Enter the filesystem uri
      fs_defaultfs=hdfs://1.2.3.4:8020
      webhdfs_url=http://1.2.3.4:50070/webhdfs/v1
# ------------------------------------------------------------------------     
[beeswax]
  hive_server_host=1.2.3.4
  hive_server_port=10000
  hive_server_http_port=10001
  max_number_of_sessions=3
  thrift_version=11
  use_sasl=true
  # ------------------------------------------------------------------------
[hbase]
  hbase_clusters=(Cluster|1.2.3.4:9090)
  thrift_transport=buffered
  ssl_cert_ca_verify=false
728x90
λ°˜μ‘ν˜•

+ Recent posts