优选主流主机商
任何主机均需规范使用

如何使用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:详细步骤指南