hive 的hiveserver2 服务端配置


  • hive 的服务端配置
  • hive 的客户端连接

一:hive的服务器端配置

 cd /home/hadoop/yangyang/hive/conf
 vim hive-site.xml
 <property>
  <name>hive.server2.thrift.port</name>
  <value>10000</value>
</property>

<property>
  <name>hive.server2.thrift.bind.host</name>
  <value>namenode01.hadoop.com</value>
  <!--更改为自己的主机名字-->
</property>
<property>
  <name>hive.server2.long.polling.timeout</name>
  <value>5000</value>
</property>
推出配置执行命令:
$ bin/hive --service hiveserver2 &

二:hive 的客户端连接

bin/beeline
!connect jdbc:hive2://namenode01.hadoop.com:10000

image_1aj45clos1up9uavpfbbiu1f3d9.png-46.7kB

转载于:https://blog.51cto.com/flyfish225/2097257

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值