[Python] Unable to read JSON from Redis Cache using spark

Discussão em 'Python' iniciado por Stack, Agosto 7, 2025.

  1. Stack

    Stack Membro Participativo

    I am unable to read data from the Redis cache; although the keys are present, the query returns an empty DataFrame in Spark*

    redis_key json

    val tableDF = sqlContext.read.format("org.apache.spark.sql.redis").option("table","DevData").option("key.column", "REDIS_KEY").load()


    Writing json data into DevData table like below

    redisClient.hset("DevData", REDIS_KEY, json)


    Thank you in advance for your answers.

    Continue reading...

Compartilhe esta Página