hue安装完整教程

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 1023 23:31 anaconda-ks.cfg
-rw-r--r--. 1 root root    46478 1023 23:31 install.log
-rw-r--r--. 1 root root 14846119 630 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

hue-3.9.0-cdh5.5.2

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
在这里插入图片描述
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值