You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-4
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@ A library for reading and writing data from and to [Redis](http://redis.io) with
5
5
6
6
Spark-Redis provides access to all of Redis' data structures - String, Hash, List, Set and Sorted Set - from Spark as RDDs. The library can be used both with Redis stand-alone as well as clustered databases. When used with Redis cluster, Spark-Redis is aware of its partitioning scheme and adjusts in response to resharding and node failure events.
7
7
8
+
Spark-Redis also provides Spark-Streaming support.
9
+
8
10
## Minimal requirements
9
11
You'll need the the following to use Spark-Redis:
10
12
@@ -15,7 +17,7 @@ You'll need the the following to use Spark-Redis:
15
17
16
18
## Known limitations
17
19
18
-
* Java, Python and R API bindings are not provided at this time
20
+
* Java, Python and R API bindings are not provided at this time
19
21
* The package was only tested with the following stack:
The above example demonstrates storing data in Redis in a Sorted Set. The `zsetRDD` in the example should contain pairs of members and their scores, whereas `zsetName` is the name for that key.
250
252
253
+
### Streaming
254
+
Spark-Redis support streaming data from Redis instance/cluster, currently streaming data are fetched from Redis' List by the `blpop` command. Users are required to provide an array which stores all the List names they are interested in. The [storageLevel](http://spark.apache.org/docs/latest/streaming-programming-guide.html#data-serialization) is `MEMORY_AND_DISK_SER_2` by default, you can change it on your demand. The stream is a `(listName, value)` stream by default, but if you don't care about which list feeds the value, set the `withStreamName` as `false` and you will get the only `value` stream.
0 commit comments