Hive安装

1 Hive安装地址1)Hive官网地址http://hive.apache.org2)文档查看地址https://cwiki.apache.org/confluence/display/Hive/GettingStarted3)下载地址http://archive.apache.org/dist/hive/4)github地址https://github.com/apache/hive2 Hive安装部署2.1)修改hadoop相关配置配置core-site.xml[xxx@had
摘要由CSDN通过智能技术生成

1 Hive安装地址

1)Hive官网地址
http://hive.apache.org
2)文档查看地址
https://cwiki.apache.org/confluence/display/Hive/GettingStarted
3)下载地址
http://archive.apache.org/dist/hive/
4)github地址
https://github.com/apache/hive

2 Hive安装部署

2.1)修改hadoop相关配置
配置core-site.xml

[xxx@hadoop102 ~]$ cd $HADOOP_HOME/etc/hadoop
[xxx@hadoop102 hadoop]$ vim core-site.xml

增加配置文件

<!-- 配置该xxx(superUser)允许通过代理访问的主机节点 -->
    <property>
        <name>hadoop.proxyuser.xxx.hosts</name>
        <value>*</value>
</property>
<!-- 配置该xxx(superUser)允许通过代理用户所属组 -->
    <property>
        <name>hadoop.proxyuser.xxx.groups</name>
        <value>*</value>
</property>
<!-- 配置该xxx(superUser)允许通过代理的用户-->
    <property>
        <name>hadoop.proxyuser.xxx.users</name>
        <value>*</value>
</property>

配置yarn-site.xml

<!-- NodeManager使用内存数,默认8G,修改为4G内存 -->
<property>
	<description>Amount of physical memory, in MB, that can be allocated 
	for containers. If set to -1 and
	yarn.nodemanager.resource.detect-hardware-capabilities is true, it is
	automatically calculated(in case of Windows and Linux).
	In other cases, the default is 8192MB.
	</description>
	<name>yarn.nodemanager.resource.memory-mb</name>
	<value>4096</value>
</property>
<!-- 容器最小内存,默认512M -->
<property>
	<description>The minimum allocation for every container request at the RM	in MBs. Memory requests lower than this will be set to the value of this	property. Additionally, a node manager that is configured to have less memory	than this value will be shut down by the resource manager.
	</description>
	<name>yarn.scheduler.minimum-allocation-mb</name>
	<value>512</value>
</property>

<!-- 容器最大内存,默认8G,修改为4G -->
<property>
	<description>The maximum allocation for every container request at the RM	in MBs. Memory requests higher than this will throw an	InvalidResourceRequestException.
	</description>
	<name>yarn.scheduler.maximum-allocation-mb</name>
	<value>4096</value>
</property>

<!-- 虚拟内存检查,默认打开,修改为关闭 -->
<property>
	<description>Whether virtual memory limits will be enforced for
	containers.</description>
	<name>yarn.nodemanager.vmem-check-enabled</name>
	<value>false</<
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值