RedisLabs / spark-redis

A connector for Spark that allows reading and writing to/from Redis cluster
BSD 3-Clause "New" or "Revised" License
935 stars 368 forks source link

Failed connecting to host localhost:6379 #313

Open ighack opened 3 years ago

ighack commented 3 years ago

Can I use this

sparkSession.sql(
      """CREATE TEMPORARY VIEW es (JIANG_CD STRING)
         |  USING org.apache.spark.sql.redis OPTIONS (table 'es',spark.redis.host '10.3.87.33',spark.redis.port '6379')
         |""".stripMargin)

and Can I use where like this sparkSession.sql("SELECT * FROM es where JIANG_CD = '1' ")