安装依赖包:
yum install rsync gcc openldap-devel python-ldap mysql-devel python-devel python-setuptools python-simplejson sqlite-devel libxml2-devel libxslt-devel cyrus-sasl-devel gcc-c++
下载指定的hue,在此使用的是cdh的hue:
wget http://archive-primary.cloudera.com/cdh5/cdh/5/hue-3.7.0-cdh5.4.2.tar.gz或到官网上去下载
解压安装
tar –zxvf hue-*.gz
cd hue*
make install PREFIX=/opt/hue HADOOP_HOME=/opt/hadoop
ln -s /opt/hue/desktop/libs/hadoop/java-lib/hue-plugins-3.6.0-cdh5.1.0.jar /opt/hadoop/lib创建hue相关mysql数据
create database hue;
grant all on hue.* to 'hue'@'localhost' identified by 'hue';
grant all on hue.* to 'hue'@'hd1' identified by 'hue';
grant all on hue.* to 'hue'@'%' identified by 'hue';
GRANT ALL PRIVILEGES ON *.* TO 'hue'@'master-active' IDENTIFIED BY 'hue'
WITH GRANT OPTION;
FLUSH PRIVILEGES;
同步hue初始化数据
/opt/hue/hue/build/env/bin/hue migrate
/opt/hue/hue/build/env/bin/hue syncdb --all
配置文件
参见官网。
启动
/opt/hue/hue/build/env/bin/supervisor
停止
ps –ef|gerp hue
kill -9 [ 进程号 ]