hue 安裝文檔

用root帳號python

一、環境安裝mysql

yum install -y   cyrus-sasl-devel cyrus-sasl-gssapi gcc gcc-c++ krb5-devel libxml2-devel libxslt-devel  c++

yum install -y   mysql-devel openldap-devel  python-simplejson  gmp-develgit

yum install -y   rsync python-ldap python-setuptools sqlite-devel github


yum search python-develsql

yum install -y  python26-develjson

python26-devel.x86_64vim

四、hue安裝api

下載  https://github.com/cloudera/hue/releasesapp

unzip hue-master.zip && cd hue-master

解壓:hue-3.7.0-cdh5.4.2.tar.gz

tar –zxvf hue-3.7.0-cdh5.4.2.tar.gz

git clean -xdf desktop/core/ext-py

make clean

make apps && make install




五、啓動服務

#啓動調試環境服務

build/env/bin/hue runserver

#啓動生產環境服務

adduser hue

build/env/bin/supervisor &


六、系統登陸

登陸:http://192.168.4.150:8000/

用戶密碼:hue/hue

安裝OK了。


八、配置Hbase

(1)啓動hbase服務(先要啓動hbase的本身的服務)

進入hbase目錄開啓Hbase 的thrift服務,能夠用hue管理hbase 

$ hbase-daemon.sh start thrift   或者 service hbase-thrift start

starting thrift, logging to /home/jifeng/hbase-0.94.21/logs/hbase-jifeng-thrift-jifeng01.out

(2)編輯hue.ini

繼續編輯  vim desktop/conf/hue.ini 找到 [hbase] 段落,去掉 hbase_clusters 的註釋,並修改 hbase_clusters 的地址

[hbase]  

# Comma-separated list of HBase Thrift servers for clusters in the format of '(name|host:port)'.  

# Use full hostname with security.  

hbase_clusters=(Cluster|host1:9090)  

# HBase configuration directory, where hbase-site.xml is located.  

## hbase_conf_dir=/etc/hbase/conf  

# Hard limit of rows or columns per row fetched before truncating.  

## truncate_limit = 500  

# 'buffered' is the default of the HBase Thrift Server and supports security.  

# 'framed' can be used to chunk up responses,  

# which is useful when used in conjunction with the nonblocking server in Thrift.  

## thrift_transport=buffered

這邊的 (Cluster|host1:9090) 裏面的 Cluster並非你的HDFS集羣名字,只是一個顯示在HUE界面上的文字,因此能夠隨便寫,我這邊保留 Cluster字樣,後面的host1:9090是thrift的訪問地址,若是有多個用逗號分隔。






ant mvn (from maven package or maven3 tarball)

make


mysql

python-devel

libtidy (for unit tests only)

openssl-devel (for version 7+)


yum install -y libxml2-devel libxslt-devel mysql-devel openldap-devel sqlite-devel gmp-devel

yum install -y asciidoc cyrus-sasl-devel cyrus-sasl-gssapi gcc gcc-c++ krb5-devel

相關文章
相關標籤/搜索