好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

使用DataGrip连接Hive的详细步骤

1. 从官网下载安装包 下载网址

 2. 安装

第一步

第二步

第三步

第四步

3. 安装完成后输入激活码

使用安装idea的图 datagrip 与此类似

4. 配置hive

第一步

第二步

第三步 可以在虚拟机上拷贝到本地

 

第四步

第五步:

在主节点上执行如下代码 (后台开启 hive 服务)

不开启此服务无法 连接

?

1

[root@node01 /]# nohup hive --service hiveserver2 &

克隆主节点测试是否能够连接的通

?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

[root@node01 /]# beeline

which: no hbase in (/usr/lib64/qt-3.3/bin:/usr/ local /sbin:/usr/ local /bin:/sbin:/bin:/usr/sbin:/usr/bin:/export/servers/hadoop-2.6.0-cdh5.14.0/bin:/export/servers/hive-1.1.0-cdh5.14.0//bin:/export/servers/jdk1.8.0_144/bin:/root/bin)

beeline version 1.1.0-cdh5.14.0 by apache hive

beeline>

beeline>

beeline> ! connect jdbc:hive2://node01:10000

scan complete in 2ms

connecting to jdbc:hive2://node01:10000

enter username for jdbc:hive2://node01:10000: root

enter password for jdbc:hive2://node01:10000: ******

connected to : apache hive (version 1.1.0-cdh5.14.0)

driver: hive jdbc (version 1.1.0-cdh5.14.0)

transaction isolation : transaction_repeatable_read

0: jdbc:hive2://node01:10000>

第六步 (看到如下信息即为成功)

datagrip系列教程:

最新datagrip2020.2.x破解版激活码的步骤详解(支持mac/windows/linux)

datagrip 2020.1 安装与激活方法

到此这篇关于datagrip连接hive的详细图文教程的文章就介绍到这了,更多相关datagrip连接hive内容请搜索服务器之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持服务器之家!

原文链接:https://blog.csdn.net/weixin_45749011/article/details/103171510

查看更多关于使用DataGrip连接Hive的详细步骤的详细内容...

  阅读:18次