1.hive安装
2.配置添加hadoop配置
cd /usr/share/hadoop/hadoop-2.7.7/etc/hadoop
sudo vim core-site.xml
#添加项
<property>
<name>hadoop.proxyuser.root.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.root.groups</name>
<value>*</value>
</property>
#保存退出:wq
3.配置hive
cd /usr/share/hive/apache-hive-2.3.3-bin/conf
sudo vim hive-site.xml
#添加项 不需要身份验证
<property>
<name>hive.server2.authentication</name>
<value>NONE</value>
</property>
#保存退出:wq
4.启动hive
cd /usr/share/hadoop/hadoop-2.7.7
./sbin/stop-dfs.sh
./sbin/start-dfs.sh
cd /usr/share/hive/apache-hive-2.3.3-bin
./bin/hive --service hiveserver2
5.测试
localhost:10002
$HIVE_HOME/bin/beeline -u jdbc:hive2://localhost:10000
网友评论