datagrip / redis-jdbc-driver Goto Github PK
View Code? Open in Web Editor NEWRedis JDBC Driver
License: Apache License 2.0
Redis JDBC Driver
License: Apache License 2.0
When trying to connect via spark, I get this exception:
Exception in thread "main" java.sql.SQLFeatureNotSupportedException
at jdbc.RedisStatement.setQueryTimeout(RedisStatement.java:91)
at org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$.getQueryOutputSchema(JDBCRDD.scala:67)
at org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$.resolveTable(JDBCRDD.scala:58)
at org.apache.spark.sql.execution.datasources.jdbc.JDBCRelation$.getSchema(JDBCRelation.scala:242)
at org.apache.spark.sql.execution.datasources.jdbc.JdbcRelationProvider.createRelation(JdbcRelationProvider.scala:37)
at org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:350)
at org.apache.spark.sql.DataFrameReader.loadV1Source(DataFrameReader.scala:228)
at org.apache.spark.sql.DataFrameReader.$anonfun$load$2(DataFrameReader.scala:210)
at scala.Option.getOrElse(Option.scala:121)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:210)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:171)
at local.package.generate.Classname$.main(Sample.scala:57)
This is the code I am using, I assume that query param is not supported...
When I remove the line with query parameter, I get another error saying that "dbtable" or "query" params are mandatory.
When I try connecting without spark, everything works as expected and I am able to retrieve values.
sparkSession
.read
.format("jdbc")
.option("url", "jdbc:redis://<password>@<host>:<port>?ssl=true")
.option("driver", "jdbc.RedisDriver")
.option("query", "keys startsWith*")
.load()
.printSchema()
Describe the bug
DataGrip throw exception as below when connect to AWS MemoryDB cluster even Redis CLI still connect and show correct version
Unable to get the server mode using the "INFO server" command to check if the connection mode matches the server mode.
No reachable node in cluster.
Steps to Reproduce
ssh -vvvv -N -L 63790:xxx.clustercfg.memorydb.ap-northeast-1.amazonaws.com:6379 xxx-bastion
redis-cli --verbose -h 127.0.0.1 -p 63790
127.0.0.1:63790> cluster info
cluster_state:ok
127.0.0.1:63790> info server
# Server
redis_version:6.2.6
redis_git_sha1:0
redis_git_dirty:0
redis_build_id:0
redis_mode:cluster
os:Amazon MemoryDB
127.0.0.1
and port 63790
and get exceptionPlatform Versions
Expected behavior
DataGrip should connect to MemoryDB as Redis CLI instead of throw the exception
Thanks for publishing this JDBC driver, can you please add some some documentation?
Hi,
I have problem with connection to Azure Cache Redis and I'm not sure if it is possible or I did something wrong.
So far in my sevices I used connection string like: rediss://:[password]@[host]:6380
. Default not ssl port is disabled by server configuration.
Tried Authentication "User & Password", "No Auth" with option Use SSL
turned on and off and with parameter "sslprotocols=tls1.2" and "ssl=true".
DataGrip shows: "Failed to connect to any host resolved for DNS name."
Redis version: 6.0
Connection string works just fine with Jedis and Lettuce.
Thanks in advance.
Redis Console works fine on idea. But it is not convience to view full data with console.
Is it possible to support view data as a table?
Having it available in a repository would greatly simplify its use.
Thank you!
Is simply, faster, or stable?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.