这个Hive-jdbc的jar包中,引入了很多的jar包,所以要是冲突了需要把个别的冲突jar包进行排除掉 <!-- support dmp datasource driver hive --> <dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-jdbc</artifactId> <version>3.1.1</version> <exclusions> <exclusion> <groupId>ch.qos.logb...
# 数据源基本配置 url: jdbc:mysql://localhost:3306/student?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai username: root password: '0429' driver-class-name: com.mysql.cj.jdbc.Driver type: com.alibaba.druid.pool.DruidDataSource # # 数据源其他配置 # druid: # # 配置初始...
可以添加如下代码: # Hive连接信息spring.datasource.url=jdbc:hive2://localhost:10000/defaultspring.datasource.username=hivespring.datasource.password=hivespring.datasource.driver-class-name=org.apache.hive.jdbc.HiveDriver 1. 2. 3. 4. 5. 这里配置了Hive连接的URL、用户名、密码和驱动类名。根据实际...