idea的database tools 中配置hive


起因

在开发hive sql的时候需要到hue中运行、查看hive sql的语法错误很麻烦,hive能不能像mysql一样集成在idea开发工具中呢?答案是可以的。

jdbc driver 下载

由于我使用的CDH-6.3.2-1.cdh6.3.2这个版本的平台,所以要使用对应得jar包
下载链接:cloudera cdh6 hive jdbc

配置

1. 选择dabase tools

idea的database tools 中配置hive

2. 选择数据源类型

idea的database tools 中配置hive

3. 配置connection type 、driver和连接配置,如下图

idea的database tools 中配置hive

4. 在driver配置中导入下载好得jdbc jar包

idea的database tools 中配置hive

5. 测试配置

idea的database tools 中配置hive

使用database Tools,schema中就可以选择hive中建好的库

idea的database tools 中配置hive

相关文章:

  • 2022-12-23
  • 2021-12-10
  • 2021-12-21
  • 2021-07-07
  • 2022-01-22
  • 2021-07-10
  • 2022-01-21
猜你喜欢
  • 2021-11-26
  • 2021-04-21
  • 2021-04-15
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案