大数据学习笔记(十六)-Hue的安装部署和使用

1.Hue的安装
参考文档:http://archive.cloudera.com/cdh5/cdh/5/hue-3.9.0-cdh5.7.0/manual.html
①安装Hue的依赖

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

②解压后在解压目录下执行
make apps

③配置文件
/desktop/conf下的hue.ini

secret_key=jFE93j;2[290-eiw.KEiwN2s3['d;/.q[eIW^y#e=+Iei*@Mn

④启动

/build/env/bin/supervisor

admin用户名设置为hadoop

2.整合HDFS

hdfs-site.xml

<property>
  <name>dfs.webhdfs.enabledname>
  <value>truevalue>
property>

core-site.xml

<property>
  <name>hadoop.proxyuser.用户名.hostsname>
  <value>*value>
property>
<property>
  <name>hadoop.proxyuser.用户名.groupsname>
  <value>*value>
property>

/desktop/conf下的hue.ini

default_user=hadoop
default_hdfs_superuser=hadoop
fs_defaultfs=hdfs://hadoop000:8020
webhdfs_url=http://hadoop000:50070/webhdfs/v1
hadoop_conf_dir=/home/hadoop/app/hadoop-2.6.0-cdh5.7.0/etc/hadoop

3.整合YARN
/desktop/conf下的hue.ini

resourcemanager_host=hadoop000
# URL of the ResourceManager API
resourcemanager_api_url=http://hadoop000:8088
# URL of the ProxyServer API
proxy_api_url=http://hadoop000:8088
# URL of the HistoryServer API
history_server_api_url=http://hadoop000:19888

4.整合MySQL
/desktop/conf下的hue.ini

 [[[mysql]]]
 name=hive
 engine=mysql
 user=root
 password=root

5.整合Hive
/desktop/conf下的hue.ini

hive_server_host=hadoop000
hive_conf_dir=/home/hadoop/app/hive-1.1.0-cdh5.7.0/conf

hue整合hive必须要先启动HiveServer2

你可能感兴趣的:(大数据)