栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

hive系列(三) Hive Server2

hive系列(三) Hive Server2

  1.hive server2 允许客户端远程连接

GettingStarted - Apache Hive - Apache Software Foundation

$HIVE_HOME/bin/hiveserver2

node:10020 webUI页面

2.启动后使用beeline连接
$HIVE_HOME/bin/beeline

#hive需要使用非root用户连接

修改hadoop集群配置core-site.xml

   
   
        hadoop.proxyuser.root.groups
        *
    
    
        hadoop.proxyuser.root.hosts
        *
    

scp core-site.xml node2:`pwd`

scp core-site.xml node4:`pwd`

scp core-site.xml node5:`pwd`

2.在nameNode节点执下面命令
– bin/hdfs dfsadmin -fs hdfs://node1:8020 -refreshSuperUserGroupsConfiguration
– bin/hdfs dfsadmin -fs hdfs://node2:8020 -refreshSuperUserGroupsConfiguration

重启Hiveserver2后,在连接/用户是在hadoop的core-site.xml配置相对应,密码随便定义的

!connect jdbc:hive2://node4:10000/default hadoop 123

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/700520.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号