JAVA如何连接Hive

JAVA如何连接Hive,第1张

pom.xml


<dependency>
    <groupId>org.apache.hadoopgroupId>
    <artifactId>hadoop-commonartifactId>
    <version>2.7.3version>
dependency>

<dependency>
    <groupId>org.apache.hadoopgroupId>
    <artifactId>hadoop-coreartifactId>
    <version>1.2.1version>
dependency>

<dependency>
    <groupId>org.apache.hivegroupId>
    <artifactId>hive-jdbcartifactId>
    <version>2.1.0version>
dependency>

Application.yml

spring:
  datasource:
  	driver-class-name: org.apache.hive.jdbc.HiveDriver
  	url: jdbc:hive2://127.0.0.1:10000/test
  	username: test
  	password: test

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/734086.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-27
下一篇 2022-04-27

发表评论

登录后才能评论

评论列表(0条)

保存