Skip to content

Version 3.1.1🌈

Choose a tag to compare

@github-actions github-actions released this 23 Nov 21:11
· 16 commits to master since this release
a09d7e3

Install

3.1.1 is published only here, not on Maven Central, so --packages com.redislabs:spark-redis_2.12:3.1.1 doesn't resolve. Download the jar-with-dependencies for your Spark's Scala version from the assets below, and give it to Spark with --jars:

spark-shell --jars spark-redis_2.12-3.1.1-jar-with-dependencies.jar

Use spark-redis_2.13-3.1.1-jar-with-dependencies.jar with a Scala 2.13 Spark. SHA256SUMS lists the checksums of the jars. The jars aren't PGP-signed.

Security

The Redis password set through spark.redis.auth or the auth option showed in clear text in the Spark UI, the History Server, event logs, query plans and the driver log. 3.1.1 reads the password from spark.redis.password and the password option, which Spark hides, and no longer logs it.

Upgrading alone doesn't hide the password. Rename spark.redis.auth to spark.redis.password and the auth option to password, then rotate any password that was set through the old names. See Keeping the password out of the Spark UI and logs.

Changes

  • Docs: 3.1.1 is on GitHub releases; 3.1.0 doesn't read spark.redis.password @alberttwong (#432)
  • Attach release jars to the GitHub release; publish to Maven Central only when enabled @alberttwong (#431)
  • Follow MOVED and ASK in write.mode = replace and binary-model TTL writes @alberttwong (#430)
  • Add a migration that rewrites Java-serialized table schemas as JSON @alberttwong (#429)
  • Read the password from spark.redis.password, which Spark redacts @alberttwong (#428)
  • Remove the unused maven-site-plugin block that pins Velocity 1.7 @alberttwong (#427)
  • Docs: list the commands added by #423 and #424, and say HSET, not HMSET @alberttwong (#426)
  • Wait for cancelled tasks to end before counting leaked connections @alberttwong (#425)
  • Follow MOVED and ASK in every writer; binary-model TTL writes use MSETEX or SET EX @alberttwong (#424)
  • Add write.mode = merge | replace to hash-model DataFrame writes @alberttwong (#423)
  • Use JNA 5.13.0 so the tests start Redis on Apple Silicon @alberttwong (#422)
  • Name the key, field, value and type when a read can't parse a value @alberttwong (#421)
  • Run the tests on the JDK that runs Maven (scalatest-maven-plugin 2.2.0) @alberttwong (#418)
  • Renew the expired test TLS certificate @alberttwong (#420)
  • Add spark.redis.client.name and the client.name source option @alberttwong (#419)
  • Run the test Redis servers in Docker with Testcontainers; require Redis 7.4+ @alberttwong (#417)
  • Store DataFrame schemas as JSON so every Spark version can read them @alberttwong (#416)
  • Run the Java builds on Ubuntu 24.04 to stop downloading the JDK @alberttwong (#415)
  • Build, test and publish for Scala 2.13 like Spark 3.x @alberttwong (#414)
  • Build with Spark 3.5.10 and test Spark 3.2 to 3.5 in CI @alberttwong (#413)
  • Return connections to the pool when reads fail and when receivers stop @alberttwong (#411)
  • Read stream batches by offset range so that they can be recomputed @alberttwong (#412)
  • Move GitHub Actions off Node 20 and fix flaky CI steps @alberttwong (#410)
  • Fail writes that Redis rejects instead of dropping them silently @alberttwong (#409)
  • Fix Date and Timestamp fields in the stream source @alberttwong (#408)
  • Create each endpoint's JedisPool once under concurrent first use @alberttwong (#407)
  • Document common questions from open issues @alberttwong (#406)
  • Record JaCoCo coverage: wire the agent into scalatest and report at verify @alberttwong (#405)
  • Batch setKVs writes and release connections on failure @alberttwong (#403)
  • Support writing RDD of binary key-value pairs @jeremysong (#378)
  • Add CLIENT SETINFO support to identify spark-redis connections in Redis server @viktoriya-kutsarova (#401)
  • Migrate from CircleCI to Github Actions @tishun (#395)
  • fix #354: Notify user when dataframe contains only key column @anktrj (#355)