jdk 安装
参考:https://blog.csdn.net/Omger8716/article/details/102720205
pyhton2.7安装
[root@hc100 ~]# yum install gcc
[root@hc100 ~]# wget http://python.org/ftp/python/2.7.8/Python-2.7.8.tgz
[root@hc100 ~]# ll
总用量 107428
-rw-------. 1 root root 1614 10月 23 23:31 anaconda-ks.cfg
-rw-r--r--. 1 root root 46478 10月 23 23:31 install.log
-rw-r--r--. 1 root root 14846119 6月 30 2014 Python-2.7.8.tgz
[root@hc100 ~]# tar -zxvf Python-2.7.8.tgz
[root@hc100 ~]# cd Python-2.7.8
[root@hc100 Python-2.7.8]# ./configure
[root@hc100 Python-2.7.8]# make && make install
[root@hc100 Python-2.7.8]# python -V
Python 2.7.8
mysql安装
参考:https://blog.csdn.net/Omger8716/article/details/102738672
安装hue依赖包
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.下载hue
2.解压、编译
[root@hc100 ~]# tar -zxvf hue-3.9.0-cdh5.5.2.tar.gz
[root@hc100 ~]# cd hue-3.9.0-cdh5.5.2
[root@hc100 hue-3.9.0-cdh5.5.2]# make apps
3.创建用户
[root@hc100 hue-3.9.0-cdh5.5.2]# adduser hue
[root@hc100 hue-3.9.0-cdh5.5.2]# chown -R hue.hue /root/hue-3.9.0-cdh5.5.2
4.修改配置文件
本次部署的是简单模式,没有连接hadoop、hbase、hive
[root@hc100 hue-3.9.0-cdh5.5.2]# cd desktop/conf/
[root@hc100 hue-3.9.0-cdh5.5.2]# vim hue.ini
# Set this to a random string, the longer the better.
# This is used for secure hashing in the session store.
secret_key=
# Execute this script to produce the Django secret key. This will be used when
# `secret_key` is not set.
## secret_key_script=
# Webserver listens on this address and port
# http_host=0.0.0.0
http_host=192.168.0.49 #修改成自己的ip
http_port=8888
5.启动
[root@hc100 ~]# cd /root/hue-3.9.0-cdh5.5.2
[root@hc100 hue-3.9.0-cdh5.5.2]# build/env/bin/supervisor
starting server with options:
{'daemonize': False,
'host': '192.168.0.49',
'pidfile': None,
'port': 8888,
'server_group': 'hue',
'server_name': 'localhost',
'server_user': 'hue',
'ssl_certificate': None,
'ssl_private_key': None,
'threads': 40,
'workdir': None}
6.web访问
http://192.168.0.49:8888