hue的安装与配置(hue的应用教程---1)

1.下载版本

http://gethue.com/downloads/releases/3.10.0/hue-3.10.0.tgz

2.安装相关de的依赖包

sudo yum install ant asciidoc cyrus-sasl-devel cyrus-sasl-gssapi 
cyrus-sasl-plain gcc gcc-c++ krb5-devel libffi-devel libxml2-devel
 libxslt-devel make  mysql mysql-devel openldap-devel python-devel
 sqlite-devel gmp-devel

3.安装maven

 wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo 
rpm --rebuilddb && yum install -y apache-maven 

4.新增hue用户

#必须安装的包
rpm --rebuilddb && yum install sudo 
rpm --rebuilddb && yum install passwd 
useradd hue

passwd hue
#输入密码为hue即可

5.权限分配

chmod -R 777 hue-3.10.0/

6.hue的启动配置

修改desktop/conf/hue.ini文件如下配置

#修改hue.ini 修改端口号
 # Webserver listens on this address and port
  http_host=0.0.0.0
  http_port=8888

  # Time zone name
  time_zone=Asia/Shanghai

  # Enable or disable Django debug mode.
  django_debug_mode=false
#修改数据库链接
[[database]]
    # Database engine is typically one of:
    # postgresql_psycopg2, mysql, sqlite3 or oracle.
    #
    # Note that for sqlite3, 'name', below is a path to the filename. For other  
backends, it is the database name.
    # Note for Oracle, options={"threaded":true} must be set in order to avoid cc
rashes.
    # Note for Oracle, you can use the Oracle Service Name by setting "port=0" aa
nd then "name=:/".
    # Note for MariaDB use the 'mysql' engine.
    engine=mysql
    host=172.17.0.2
    port=3306
    user=root
    password=LIU123!@
    name=hue
    ## options={}

7.hue的启动

#导入初始数据执行以下步骤
./build/env/bin/hue syncdb  
输入yes  
用户名hue
密码hue


./build/env/bin/hue migrate --merge


#启动hue
./build/env/bin/supervisor

 

8.打开浏览器输入localhost:8888即可进行操作,初始账号密码为hue

你可能感兴趣的:(hadoop,Hadoop实战学习)