hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)…

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)…不多说 直接上干货 我的集群机器情况是 bigdatamaste 192 168 80 10 bigdataslave 192 168 80 11 和 bigdataslave 192 168 80 12 然后 安装目录是在 home hadoop app 下 官方建议在 master 机器上安装 Hue 我这里也不例外 安装在 bigdatamaste 机器上 Hue 版本 hue 3 9 0 cdh

不多说,直接上干货!

我的集群机器情况是 bigdatamaster(192.168.80.10)、bigdataslave1(192.168.80.11)和bigdataslave2(192.168.80.12)

然后,安装目录是在/home/hadoop/app下。

官方建议在master机器上安装Hue,我这里也不例外。安装在bigdatamaster机器上。

Hue版本:hue-3.9.0-cdh5.5.4

需要编译才能使用(联网)

说给大家的话:大家电脑的配置好的话,一定要安装cloudera manager。毕竟是一家人的。

同时,我也亲身经历过,会有部分组件版本出现问题安装起来要个大半天时间去排除,做好心里准备。废话不多说,因为我目前读研,自己笔记本电脑最大8G,只能玩手动来练手。

纯粹是为了给身边没高配且条件有限的学生党看的! 但我已经在实验室机器群里搭建好cloudera manager 以及 ambari都有。

首先,在这里,先给大家普及知识。

对于hive的安装是有3种方式的:

1.本地derby

2.本地mysql (比如master、slave1、slave2集群。hive一般我是安装在master上)(也叫作hive单用户模式)

当然,你也来个master、slave1、slave2集群,外加client专门来安装hive、sqoop、azkaban这样的。

或者,你也来个master、slave1、slave2、slave3、slave4集群,hive一般我也是安装在master上。

3..远端mysql (在主从上配)(也叫作hive多用户模式)

(比如master、slave1、slave2集群。hive一般我是安装在master和slave1上)

或者,你也来个master、slave1、slave2、slave3、slave4集群,hive一般我也是安装在master和slave1上。

https://www.cloudera.com/documentation/enterprise/latest/topics/cdh_ig_hue_config.html#concept_ezg_b2s_hl

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

首先,来看看官网提供的参考步骤

http://archive.cloudera.com/cdh5/cdh/5/hue-3.9.0-cdh5.5.0/manual.html

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

一、以下是默认的配置文件

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

# Settings to configure Beeswax with Hive

[beeswax]

# Hostwhere HiveServer2 isrunning.

# If Kerberos securityis enabled, use fully-qualified domain name (FQDN).

hive_server_host=localhost

# PortwhereHiveServer2 Thrift server runs on.

hive_server_port=10000# Hive configuration directory,where hive-site.xml islocated

hive_conf_dir=/etc/hive/conf

# Timeoutin seconds forthrift calls to Hive service

server_conn_timeout=120# Choose whether to use the old GetLog() thrift callfrom before Hive 0.14to retrieve the logs.

# Iffalse, use the FetchResults() thrift call from Hive 1.0or more instead.

use_get_log_api=false# Set a LIMIT clause when browsing a partitioned table.

# A positive value will beset as the LIMIT. If 0 or negative, do not setany limit.

browse_partitioned_table_limit=250# A limit to the number of rows that can be downloadedfroma query.

# A value of-1means there will be no limit.

# A maximum of65,000 isapplied to XLS downloads.

download_row_limit=# Hue willtryto close the Hive query when the user leaves the editor page.

# This will free all the query resourcesinHiveServer2, but also make its results inaccessible.

close_queries=false# Thrift version to use when communicating with HiveServer2.

# New column formatis from version 7.

thrift_version=7

二、以下是跟我机器集群匹配的配置文件(非HA集群下怎么配置Hue的hive和beeswax模块)(本地mysql模式)

三、以下是跟我机器集群匹配的配置文件(非HA集群下怎么配置Hue的hive和beeswax模块)(本地mysql模式)

都是如下哈。因为hive说白了,是可以安装在集群之外,它就是一个客户端。

其实啊,目前Hue里的beeswax 和 hive模块是一起的。为什么叫[beeswax]而不是[hive]这是历史原因!!!

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

同时,是还要将hive-default.xml.template里的hive.server2.thrift.port默认属性 和 hive.server2.thrift.bind.host默认属性,

拷贝到hive-site.xml里进行修改。

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive.server2.thrift.port

10000

hive.server2.thrift.bind.host

bigdatamaster

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

# Settings to configure Beeswax with Hive

[beeswax]

# Hostwhere HiveServer2 isrunning.

# If Kerberos securityis enabled, use fully-qualified domain name (FQDN).

hive_server_host=bigdatamaster

# PortwhereHiveServer2 Thrift server runs on.

hive_server_port=10000# Hive configuration directory,where hive-site.xml islocated

hive_conf_dir=/home/hadoop/app/hive/conf

# Timeoutin seconds forthrift calls to Hive service

server_conn_timeout=120# Choose whether to use the old GetLog() thrift callfrom before Hive 0.14to retrieve the logs.

# Iffalse, use the FetchResults() thrift call from Hive 1.0or more instead.

use_get_log_api=false# Set a LIMIT clause when browsing a partitioned table.

# A positive value will beset as the LIMIT. If 0 or negative, do not setany limit.

browse_partitioned_table_limit=250# The maximum number of partitions that will be includedin the SELECT * LIMIT sample query forpartitioned tables.

sample_table_max_partitions=10# A limit to the number of rows that can be downloadedfroma query.

# A value of-1means there will be no limit.

# A maximum of65,000 isapplied to XLS downloads.

download_row_limit=# Hue willtryto close the Hive query when the user leaves the editor page.

# This will free all the query resourcesinHiveServer2, but also make its results inaccessible.

close_queries=false# Thrift version to use when communicating with HiveServer2.

# New column formatis from version 7.

thrift_version=7

因为,Hue底层通过HiveServer2中JDBC/ODBC方式连接HIve,进行数据分析查询,需要先启动Hive中的HiveServer2服务。

所以,启动hive(在bigdatamaster节点)

$HIVE_HOME/bin/hive –service hiveserver2

或者

$HIVE_HOME/bin/hiveserver2

得到

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

其他,不多赘述,大家自己去看自己机器!

四、以下是跟我机器集群匹配的配置文件(非HA集群下怎么配置Hue的hive和beeswax模块)(远端mysql模式)

五、以下是跟我机器集群匹配的配置文件(非HA集群下怎么配置Hue的hive和beeswax模块)(远端mysql模式)

都是如下哈。因为hive说白了,是可以安装在集群之外,它就是一个客户端。

其实啊,目前Hue里的beeswax 和 hive模块是一起的。

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

比如,我这里是master、slave1和slave2组成的集群,在master和slave1上搭建的是hive的Remote模式。

看hive的官方文档

http://hive.apache.org/

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

master机器上

将hive-site.xml配置文件拆为如下两部分1)、服务端配置文件(比如在master)

hive.metastore.warehouse.dir

/user/hive/warehouse

javax.jdo.option.ConnectionURL

jdbc:mysql://192.168.80.10:3306/hive?createDatabaseIfNotExist=true

javax.jdo.option.ConnectionDriverName

com.mysql.jdbc.Driver

javax.jdo.option.ConnectionUserName

root

javax.jdo.option.ConnectionPassword

slave1机器上

hive.metastore.warehouse.dir

/user/hive/warehouse

hive.metastore.local

false

hive.metastore.uris

thrift://192.168.80.11:9083

注意,在客户端slave1,有个属性,hive.metastore.local为false。

在master节点上启动hive服务端程序

hive –service metastore

或者

hive  –servie metastore -9083

注意啦,是还要将hive-default.xml.template里的hive.metastore.uris默认属性,

拷贝到hive-site.xml里进行修改。

hive.metastore.uris  (在slave1机器上)

hive.metastore.uris

thrift://192.168.80.11:9083

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

# Settings to configure Beeswax with Hive

[beeswax]

# Hostwhere HiveServer2 isrunning.

# If Kerberos securityis enabled, use fully-qualified domain name (FQDN).

hive_server_host=bigdatamaster

# PortwhereHiveServer2 Thrift server runs on.

hive_server_port=10000# Hive configuration directory,where hive-site.xml islocated

hive_conf_dir=/home/hadoop/app/hive/conf

# Timeoutin seconds forthrift calls to Hive service

server_conn_timeout=120# Choose whether to use the old GetLog() thrift callfrom before Hive 0.14to retrieve the logs.

# Iffalse, use the FetchResults() thrift call from Hive 1.0or more instead.

use_get_log_api=false# Set a LIMIT clause when browsing a partitioned table.

# A positive value will beset as the LIMIT. If 0 or negative, do not setany limit.

browse_partitioned_table_limit=250# The maximum number of partitions that will be includedin the SELECT * LIMIT sample query forpartitioned tables.

sample_table_max_partitions=10# A limit to the number of rows that can be downloadedfroma query.

# A value of-1means there will be no limit.

# A maximum of65,000 isapplied to XLS downloads.

download_row_limit=# Hue willtryto close the Hive query when the user leaves the editor page.

# This will free all the query resourcesinHiveServer2, but also make its results inaccessible.

close_queries=false# Thrift version to use when communicating with HiveServer2.

# New column formatis from version 7.

thrift_version=7

最后的界面

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

以下是跟我机器集群匹配的配置文件(HA集群下怎么配置Hue的hive和beeswax模块)(本地和远端mysql模式)

如下:

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

[beeswax]

# Hostwhere HiveServer2 isrunning.

# If Kerberos securityis enabled, use fully-qualified domain name (FQDN).

hive_server_host=bigdata-pro01.kfk.com

# PortwhereHiveServer2 Thrift server runs on.

hive_server_port=10000# Hive configuration directory,where hive-site.xml islocated

hive_conf_dir=/opt/modules/hive-0.13.1-cdh5.3.0/conf

# Timeoutin seconds forthrift calls to Hive service

server_conn_timeout=120# Choose whether to use the old GetLog() thrift callfrom before Hive 0.14to retrieve the logs.

# Iffalse, use the FetchResults() thrift call from Hive 1.0or more instead.

use_get_log_api=false# Set a LIMIT clause when browsing a partitioned table.

# A positive value will beset as the LIMIT. If 0 or negative, do not setany limit.

browse_partitioned_table_limit=250# A limit to the number of rows that can be downloadedfroma query.

# A value of-1means there will be no limit.

# A maximum of65,000 isapplied to XLS downloads.

download_row_limit=# Hue willtryto close the Hive query when the user leaves the editor page.

# This will free all the query resourcesinHiveServer2, but also make its results inaccessible.

close_queries=false# Thrift version to use when communicating with HiveServer2.

# New column formatis from version 7.

thrift_version=7

先启动hivesever2

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

[kfk@bigdata-pro01 hive-0.13.1-cdh5.3.0]$ pwd/opt/modules/hive-0.13.1-cdh5.3.0[kfk@bigdata-pro01 hive-0.13.1-cdh5.3.0]$ bin/hiveserver2

Starting HiveServer2

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found bindingin [jar:file:/opt/modules/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Found bindingin [jar:file:/opt/modules/hbase-0.98.6-cdh5.3.0/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

停掉hue,再启动hue

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

^C[kfk@bigdata-pro01 hue-3.9.0-cdh5.5.0]$ ./build/env/bin/supervisor

[INFO] Not runningasroot, skipping privilege drop

starting server with options:

{‘daemonize’: False,’host’: ‘bigdata-pro01.kfk.com’,’pidfile’: None,’port’: 8888,’server_group’: ‘hue’,’server_name’: ‘localhost’,’server_user’: ‘hue’,’ssl_certificate’: None,’ssl_cipher_list’: ‘ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA’,’ssl_private_key’: None,’threads’: 40,’workdir’: None}

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

成功!

欢迎大家,加入我的微信公众号:大数据躺过的坑        人工智能躺过的坑

同时,大家可以关注我的个人博客:

http://www.cnblogs.com/zlslch/  和     http://www.cnblogs.com/lchzls/     http://www.cnblogs.com/sunnyDream/

详情请见:http://www.cnblogs.com/zlslch/p/7473861.html

人生苦短,我愿分享。本公众号将秉持活到老学到老学习无休止的交流分享开源精神,汇聚于互联网和个人学习工作的精华干货知识,一切来于互联网,反馈回互联网。

目前研究领域:大数据、机器学习、深度学习、人工智能、数据挖掘、数据分析。 语言涉及:Java、Scala、Python、Shell、Linux等 。同时还涉及平常所使用的手机、电脑和互联网上的使用技巧、问题和实用软件。 只要你一直关注和呆在群里,每天必须有收获

对应本平台的讨论和答疑:大数据和人工智能躺过的坑(总群)()

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

hive不在同一台机 hue_HUE配置文件hue.ini 的hive和beeswax模块详解(图文详解)(分HA集群和非HA集群)...

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/201152.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月20日 上午9:57
下一篇 2026年3月20日 上午9:58


相关推荐

  • html5是什么意思,HTML5是什么 HTML5是什么意思?

    html5是什么意思,HTML5是什么 HTML5是什么意思?随着Windows8正式版发布的脚步近在咫尺,近来关于Win8、IE10、HTML5的新闻逐渐增多,很多朋友对于Win8系统以及IE10浏览器都比较了解,但对于HTML5是什么还真有不少朋友不清楚,很多媒体网站在报道IE10浏览器支持最新html5的时候,不少朋友还是一头雾水,以下电脑百事网小编为大家简单介绍下HTML5是什么。HTML5是什么HTML5是什么意思专业的说,HTML5是用于取代1…

    2025年7月11日
    7
  • 三门问题python 编程_趣味编程:三门问题

    三门问题python 编程_趣味编程:三门问题三门问题 也称为蒙提霍尔问题 MontyHallPro 你在参加一个节目 面前是三扇关闭着的门 其中一扇后面是小汽车 选中它就可赢得汽车 另外两扇后面各是一只羊 你选择了其中一扇 但没有打开它 这时主持人打开了剩下两扇门中的一扇 后面是一只山羊 这里有个隐含前提 主持人是知道门后的情况的 主持人问你 要不要换另一扇仍然关闭着的门 还是就要你刚才选中的那扇 那么问题就是 换另一扇门会

    2026年3月18日
    2
  • 搭N8N工作流,只需要一个Gemini 助手

    搭N8N工作流,只需要一个Gemini 助手

    2026年3月15日
    2
  • VMM TEST「建议收藏」

    VMM TEST「建议收藏」vmm_testisintroducedinvmm1.1.Toknowthevmmversionwhichyouareusing,usethiscommandvcs-R-sverilog-ntb_optsdtm        +incdir+$VMM_HOME/sv$VMM_HOME/sv/vmm_versions.svv

    2026年2月18日
    8
  • 常见的图片类型_金鱼种类图片

    常见的图片类型_金鱼种类图片1、Jpg(jpeg):这是一种可以高度保留图片色彩信息的格式2、Png:该类型的图片可以实现透明3、Gif:图片所占体积小,可以实现动图4、Psd:它是一种分层的图片

    2022年8月3日
    10
  • 基于STM32F4单片机对步进电机的控制(有代码)

    基于STM32F4单片机对步进电机的控制(有代码)步进电机是将电脉冲控制信号转变为角位移或线位移的一种常用的数字控制执行元件,又称为脉冲电机。在驱动电源的作用下,步进电机受到脉冲的控制,其转子的角位移量和速度严格地与输入脉冲的数量和脉冲频率成正比。步进电机每接收一个电脉冲,转子就转过一个相应的角度(步距角)。改变通电顺序可改变步进电动机的旋转方向;改变通电频率可改变步进电动机的转速。因此,通过控制输入电脉冲的数目、频率及电动机绕组的通电顺序就可以…

    2022年5月6日
    57

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号