用root账号
1、环境安装
yum install -y cyrus-sasl-devel cyrus-sasl-gssapi gcc gcc-c++ krb5-devel libxml2-devel libxslt-devel
yum install -y mysql-devel openldap-devel python-simplejson gmp-devel
yum install -y rsync python-ldap python-setuptools sqlite-devel
yum search python-devel
yum install -y python26-devel
python26-devel.x86_64
4、hue安装
下载 https://github.com/cloudera/hue/releases
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
5、启动服务
#启动调试环境服务
build/env/bin/hue runserver
#启动生产环境服务
adduser hue
build/env/bin/supervisor &
6、系统登录
登录:http://192.168.4.150:8000/
用户密码:hue/hue
安装OK了。
8、配置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