sqoop可以将mysql里面的数据导入hbase吗

2025-05-24 05:28:31
推荐回答(1个)
回答(1):

在application.properties写好连接池配置,SessionFactoryConfig.class 中dataSource可以直接注入。
application.properties文件为:
spring.datasource.name = test
spring.datasource.url = jdbc:mysql://localhost:3306/test
spring.datasource.username = test
spring.datasource.password = 123456
spring.datasource.type = com.alibaba.druid.pool.DruidDataSource
spring.datasource.driver-class-name = com.mysql.jdbc.Driver
spring.datasource.filters = stat