February 2018
Intermediate to advanced
382 pages
11h 33m
English
The code is quite self-explanatory. One thing you should notice is that due to the requirements of the Spark-Redis library, the RDD[(String, String)] is needed when you want to write the data to Redis as a simple key value pair. The first part of the StringRDD is the key you would like to set in Redis. So, in this example, before we set the data in Redis, we convert the result to StringRDD as a key called totalBalance. Different data types of Redis require different types of RDD in Spark-Redis.
Read now
Unlock full access