|NO.Z.00034|——————————|^^ 部署 ^^|——|Hadoop&Hue.V03|——|Hue.v03|编译配置.v03|

一、启动 Hue 服务
### --- 增加 hue 用户和用户组

[root@linux122 hue]# groupadd hue
[root@linux122 hue]# useradd -g hue hue
### --- 在hue安装路径下执行

[root@linux122 hue]# build/env/bin/supervisor
starting server with options:
{'daemonize': False,
 'host': 'linux122',
 'pidfile': None,
 'port': 8000,
 'server_group': 'hue',
 'server_name': 'localhost',
 'server_user': 'hue',
 'ssl_certificate': None,
 'ssl_certificate_chain': None,
 'ssl_cipher_list': 'ECDHE-RSA-AES128-GCM-SHA256:~~
 'ssl_private_key': None,
 'threads': 50,
 'workdir': None}
二、在浏览器中输入:http://linux122:8000/,可以看见以下画面,说明安装成功。
### --- 在浏览器中输入:http://linux122:8000/,可以看见以下画面,说明安装成功。

~~~     第一次访问的时候,需要设置超级管理员用户和密码。记住它(hue/hue)。
~~~     管理界面
三、Hue整合Hadoop、Hive
### --- Hue整合Hadoop、Hive

~~~     修改参数文件 /opt/yanqi/servers/hue/desktop/conf/pseudo-distributed.ini
### --- 集成HDFS、YARN

[root@linux122 ~]# vim /opt/yanqi/servers/hue/desktop/conf/pseudo-distributed.ini
# 没有安装 Solr,禁用,否则一直报错
   app_blacklist=search                                     // 211
# [hadoop] -- [[hdfs_clusters]] -- [[[default]]]
     #fs_defaultfs=hdfs://linux121:8020                     // 986          // 注意端口号。下面语句只要一个
     fs_defaultfs=hdfs://linux121:9000                      // 987
webhdfs_url=http://linux121:50070/webhdfs/v1                // 995
hadoop_conf_dir=/opt/yanqi/servers/hadoop-2.9.2/etc/hadoop  // 1005
 
# [hadoop] -- [[yarn_clusters]] -- [[[default]]]
    resourcemanager_host=linux123                           // 1014
    resourcemanager_port=8032                               // 1017
    submit_to=True                                          // 1020
    resourcemanager_api_url=http://linux123:8088            // 1029 
    proxy_api_url=http://linux123:8088                      // 1032
    history_server_api_url=http://linux123:19888            // 1035
### --- 集成Hive
~~~     集成Hive需要启动 Hiveserver2 服务,在linux123节点上启动 Hiveserver2

[beeswax]                                                   // 1065
   hive_server_host=linux123                                // 1069
   hive_server_port=10000                                   // 1072
   hive_conf_dir=/opt/yanqi/servers/hive-2.3.7/conf         // 1075
### --- 集成MySQL
~~~     备注:name是数据库名,即 database 的名称
# [librdbms] -- [[databases]] -- [[[mysql]]];1639行
# 注意:1639行原文: ##[[mysql]] => [[mysql]];两个##要去掉!

[[[mysql]]]             // 1639
   nice_name="My SQL DB"    // 1641
   name=hue                 // 1646
   engine=mysql             // 1652
   host=linux123            // 1655
   port=3306                // 1661
   user=hive                // 1664
   password=12345678        // 1668
### --- 重启Hue服务

[root@linux122 ~]# /opt/yanqi/servers/hue/build/env/bin/supervisor

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

 

posted on   yanqi_vip  阅读(19)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示