Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No supported DataSource type found #140

Closed
smsajid opened this issue Apr 29, 2024 · 2 comments
Closed

No supported DataSource type found #140

smsajid opened this issue Apr 29, 2024 · 2 comments
Labels
released Issue has been released

Comments

@smsajid
Copy link

smsajid commented Apr 29, 2024

I am running in k8s:
kubectl run -it --rm --restart=Never redis-riot --image=fieldengineering/riot --command -- riot -h dragonfly-cluster db-import "SELECT * FROM users" --url "jdbc:postgresql://x.x.x.x:5432/db" --username postgres --password postgres json.set --keyspace users --keys id

Getting exception:

java.lang.IllegalStateException: No supported DataSource type found
        at org.springframework.util.Assert.state(Assert.java:76)
        at org.springframework.boot.jdbc.DataSourceBuilder$ReflectionDataSourceProperties.<init>(DataSourceBuilder.java:532)
        at org.springframework.boot.jdbc.DataSourceBuilder$DataSourceProperties.forType(DataSourceBuilder.java:334)
        at org.springframework.boot.jdbc.DataSourceBuilder.build(DataSourceBuilder.java:172)
        at com.redis.riot.db.DataSourceOptions.dataSource(DataSourceOptions.java:55)
        at com.redis.riot.db.DatabaseImport.reader(DatabaseImport.java:100)
        at com.redis.riot.db.DatabaseImport.job(DatabaseImport.java:94)
        at com.redis.riot.core.AbstractRiotCallable.call(AbstractRiotCallable.java:85)
        at com.redis.riot.cli.AbstractRiotCommand.call(AbstractRiotCommand.java:105)
        at com.redis.riot.cli.AbstractImportCommand.call(AbstractImportCommand.java:31)
        at com.redis.riot.cli.AbstractRiotCommand.call(AbstractRiotCommand.java:28)
        at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
        at picocli.CommandLine.access$1500(CommandLine.java:148)
        at picocli.CommandLine$RunFirst.handle(CommandLine.java:2365)
        at picocli.CommandLine$RunFirst.handle(CommandLine.java:2329)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
        at picocli.CommandLine$RunFirst.execute(CommandLine.java:2331)
        at com.redis.riot.cli.AbstractMainCommand.executionStrategy(AbstractMainCommand.java:80)
        at com.redis.riot.cli.CompositeExecutionStrategy.execute(CompositeExecutionStrategy.java:28)
        at picocli.CommandLine.execute(CommandLine.java:2170)
        at com.redis.riot.cli.AbstractMainCommand.execute(AbstractMainCommand.java:66)
        at com.redis.riot.cli.AbstractMainCommand.run(AbstractMainCommand.java:42)
        at com.redis.riot.cli.Main.main(Main.java:9)
@smsajid
Copy link
Author

smsajid commented Apr 29, 2024

This issue is also happening with the zip installation.
The issue is missing library HikariCP
Download and add to lib folder: https://repo1.maven.org/maven2/com/zaxxer/HikariCP/5.1.0/HikariCP-5.1.0.jar

@jruaux jruaux closed this as completed in c1d974e Apr 29, 2024
@jruaux jruaux added the released Issue has been released label Jun 12, 2024
@jruaux
Copy link
Collaborator

jruaux commented Jun 12, 2024

🎉 This issue has been resolved in v4.0.0 (Release Notes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Issue has been released
Projects
None yet
Development

No branches or pull requests

2 participants