linux安装hue-3.9.0-cdh5.13.1.tar.gz
python最好使用linux系统自带的python版本,因为之前第一次安装时,是使用的另外安装的anaconda版本python2.7.9(centos6操作系统自带python2.6.6),
在使用的另外安装的anaconda版本python2.7.9时,在执行到(PREFIX=/home/hue/software/ make install 安装时),要使用 from lxml import etree (yum install python-lxml.x86_64),在操作系统下的python2.7.9时,是可以得到from lxml import etree 。但是在时,是报错的。
最后使用操作系统自带的python2.6.6解决此问题
使用的组件:
yum install krb5-devel cyrus-sasl-gssapi cyrus-sasl-devel libxml2-devel libxslt-devel
yum install mysql mysql-devel openldap-devel python-devel python-simplejson sqlite-devel
####yum install libsqlite libsqlite3-dev
yum install libffi-devel gmp mpfr gmp-devel
yum install python-lxml.x86_64 sqlite-devel
###centos7.3
yum install libffi-devel libffi openssl-devel openssl openldap-devel mysql-devel gmp-devel gmp gcc-c++ rsync
在配置hue的hive是需要安装 yum install cyrus-sasl-plain cyrus-sasl-devel cyrus-sasl-gssapi 解决SASL的问题
http://www.cnblogs.com/smartloli/p/4527168.html
安装的大体执行步骤:
make apps
PREFIX=/home/hue/software/ make install
具体步骤
1.解压hue-3.9.0-cdh5.13.1.tar.gz
2.make apps(编译过程是利用hue-3.9.0-cdh5.13.1.tar.gz自带的python的虚机环境来构建专门来编译hue的环境)
vim hue-3.9.0-cdh5.13.1/Makefile
测试hue的python虚拟环境的包可以使用情况
3.PREFIX=/home/hue/software/ make install
安装完成
启动:
app_blacklist=impala,oozie,solr ####配置禁用组件(还未安装的组件)
使用root用户,build/env/bin/supervisor
参考:http://blog.csdn.net/u011596455/article/details/78046627
file browser配置
需要在hadoop的core-site.xml,添加hue用户的认证。在hadoop里添加配置,使用以下命令可以不用重启集群。
hdfs dfsadmin -refreshUserToGroupsMappings
hdfs dfsadmin -refreshSuperUserGroupsConfiguration
<property>
<name>hadoop.proxyuser.hue.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.hue.groups</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.hdfs.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.hdfs.groups</name>
<value>*</value>
</property>
[hadoop]
# Configuration for HDFS NameNode
# ------------------------------------------------------------------------
[[hdfs_clusters]]
# HA support by using HttpFs
[[[default]]]
# Enter the filesystem uri
fs_defaultfs=hdfs://10.37.43.33:9000
# NameNode logical name.
## logical_name=
# Use WebHdfs/HttpFs as the communication mechanism.
# Domain should be the NameNode or HttpFs host.
# Default port is 14000 for HttpFs.
webhdfs_url=http://10.37.43.33:50070/webhdfs/v1
# Change this if your HDFS cluster is Kerberos-secured
## security_enabled=false
# In secure mode (HTTPS), if SSL certificates from YARN Rest APIs
# have to be verified against certificate authority
## ssl_cert_ca_verify=True
# Directory of the Hadoop configuration
## hadoop_conf_dir=$HADOOP_CONF_DIR when set or '/etc/hadoop/conf'
hadoop_conf_dir=/home/hue/software/hadoop/etc/hadoop
# Configuration for YARN (MR2)
在hue里,配置DB query,在配置文件vim desktop/conf/hue.ini配置
[librdbms]
# The RDBMS app can have any number of databases configured in the databases
# section. A database is known by its section name
# (IE sqlite, mysql, psql, and oracle in the list below).
[[databases]]
[[[mysql5.7.21]]]
# Name to show in the UI.
nice_name="mysql5.7.21"
engine=mysql
host=10.37.43.35
port=3306
user=root
password=1qaz@WSX
options={ "init_command":"SET NAMES 'utf8'"}
[[[my5.1]]]
# Name to show in the UI.
nice_name="my5.1"
name=hhuuue
engine=mysql
host=10.37.43.33
port=3306
user=root
password=123456
options={ "init_command":"SET NAMES 'utf8'"}
[[[sqlite]]]
# Name to show in the UI.
nice_name=SQLite_hue
name=/home/hue/software/hue/desktop/desktop.db
engine=sqlite
更改hue的数据库为mysql
[[database]]
engine=mysql
host=10.37.43.33
port=3306
user=root
password=123456
name=hue ###数据库名字 create database hue;
## options={}
cd build/env
bin/hue syncdb ##初始化django的表,这里需要输入一个密码
bin/hue migrate ##初始化oozie之类的表