HUE 安装记录 (Ambari,HDP) - hgd250/bigdata-study GitHub Wiki
软件版本:
- HUE 3.11
- HDP 2.5.0
- Ambari 2.4.1.0
官方文档:http://gethue.com/hadoop-hue-3-on-hdp-installation-tutorial/
<property>
<name>hadoop.proxyuser.hue.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.hue.groups</name>
<value>*</value>
</property>
###start hbase ThriftServer
./bin/hbase-daemon.sh start thrift
###修改文件权限
chown -R hue.hue hue
###desktop.secret
vi hue/desktop/conf/hue.ini
secret_key=xxxxxx
###SQLITE_NOT_FOR_PRODUCTION_USE>
mysql> create database hue;
Query OK, 1 row affected (0.01 sec)
mysql> grant all on hue.* to 'hue'@'%' identified by 'huepassword';
Query OK, 0 rows affected (0.00 sec)
使用GUI工具从sqlite数据库文件desktop.db导出DDL语句,并做Mysql兼容性修改如:
1.去掉双引号
2.字段名中有mysql关键字加反引号``,如value,key,to,desc等 3.primary key 增加auto_increment
可以直接下载已经做完兼容性修改的Sql文件: [hue.mysql.sql](https://github.com/hgd250/bigdata-study/blob/master/hue.mysql.sql)
导入到Mysql数据库
mysql -uhue -h192.168.0.1(mysqlserver) -p huepassword < hue.mysql.sql
/usr/local/hue/build/env/bin/supervisor -d
###报错1
Cannot access: /user/hue. Note: you are a Hue admin but not a HDFS superuser, "hdfs" or part of HDFS supergroup, "hdfs".
解决办法:hdfs用户未设置成功。通过ambari中配置修改。