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</<