Hive的JDBC连接
时间:2021-07-01 10:21:17
帮助过:2人阅读
property>
<name>hive.server2.thrift.port
</name>
<value>10000
</value>
<description>Port number of HiveServer2 Thrift interface.
Can be overridden by setting $HIVE_SERVER2_THRIFT_PORT</description>
</property>
<property>
<name>hive.server2.thrift.bind.host
</name>
<value>0.0.0.0
</value>
<description>Bind host on which to run the HiveServer2 Thrift interface.
Can be overridden by setting $HIVE_SERVER2_THRIFT_BIND_HOST</description>
</property>
这个是hiveserver2需要的端口等内容
2.进入hive目录执行

如果没有日志的话可能什么都不输出
然后打开新的终端输入

3.然后输入连接信息
执行命令
!connect jdbc:hive2://127.0.0.1:10000
然后输入之前设置的用户名密码(我的是mysql的用户名密码)
然后回车即连接成功。
可以输入sql进行测试

Hive的JDBC连接
标签:inf col jdbc bsp rip png des can inter