编译HUE
安装依赖包
1 | [root@hadoop etc]# yum -y install ant asciidoc cyrus-sasl-devel cyrus-sasl-gssapi gcc gcc-c++ krb5-devel libtidy libxml2-devel libxslt-devel openldap-devel python-devel sqlite-devel openssl-devel mysql-devel gmp-devel |
安装hue
1 | software> wget http://archive.cloudera.com/cdh5/cdh/5/hue-3.9.0-cdh5.7.0.tar.gz |
进入apps目录下;看到编译完成的hue;配置环境变量
HUE_HOME=/home/hadoop/app/hue-3.9.0-cdh5.7.0
PATH=$HUE_HOME/build/env/lib:$PATH
编辑配置文件
通用配置项
进入desktop的conf目录下修改hue.ini配置文件和修改db权限
1 | [hadoop@hadoop hue-3.9.0-cdh5.7.0]$ cd desktop/conf/ |
Hadoop集成环境相关添加
1、hdfs-site.xml
1 | <property> |
2、core-site.xml
1 | <property> |
3、yarn-site.xml
1 | <!--打开HDFS上日志记录功能--> |
4、httpfs-site.xml
1 | <property> |
Hive环境变量的添加
(hiveserver2,使用Mysql作为独立的元数据库)
hive-site.xml
1 | <property> |
集成文件配置hive Hadoop MySQL
$HUE_HOME/desktop/conf/hue.ini (编辑 hue.ini)
1 | [hadoop] |
启动hue
执行以下指令对hue数据库进行初始化
1 | cd $HUE_HOME/build/env/ |
启动顺序
1 | 1、启动Hive metastore |
查看hdfs上的文件目录:
执行一条hive查询