@@ -13,7 +13,7 @@ This library requires Apache Spark 1.4+, Scala 2.10.4+, Jedis 2.7+, Redis 3.0+
13
13
## Current Limitations
14
14
* No Java or Python API bindings
15
15
* Only tested with the following configurations:
16
- - Redis 3.0
16
+ - Redis 2.8+
17
17
- Scala 2.10
18
18
- Spark 1.4.0
19
19
- Jedis 2.7
@@ -30,6 +30,27 @@ after the `git clone` in **Using the library** field
30
30
* The APIs will probably change several times before an official release
31
31
32
32
## Using the library
33
+ There are two ways of using Spark-Redis library:
34
+
35
+ You can use it as a maven dependency:
36
+ ```
37
+ <repositories>
38
+ <repository>
39
+ <id>spark-redis-mvn-repo</id>
40
+ <url>https://raw.github.com/RedisLabs/spark-redis/mvn-repo/</url>
41
+ </repository>
42
+ </repositories>
43
+
44
+ <dependencies>
45
+ <dependency>
46
+ <groupId>com.redislabs</groupId>
47
+ <artifactId>spark-redis</artifactId>
48
+ <version>0.5.1</version>
49
+ </dependency>
50
+ </dependencies>
51
+ ```
52
+
53
+ There also exists the possibility of downloading the project by doing:
33
54
```
34
55
git clone https://github.com/RedisLabs/spark-redis.git
35
56
mvn clean install
@@ -52,9 +73,9 @@ Type in expressions to have them evaluated.
52
73
Type :help for more information.
53
74
...
54
75
```
55
- To read data from Redis Cluster , you can use the library by loading the implicits from ` com.redislabs.provider.redis._ ` .
76
+ To read data from Redis Server , you can use the library by loading the implicits from ` com.redislabs.provider.redis._ ` .
56
77
57
- In the example we can see how to read from Redis Cluster .
78
+ In the example we can see how to read from Redis Server .
58
79
```
59
80
scala> import com.redislabs.provider.redis._
60
81
scala> val keysRDD = sc.fromRedisKeyPattern(("127.0.0.1", 7000), "*", 5)
@@ -65,7 +86,7 @@ scala> val listRDD = keysRDD.getList
65
86
scala> val setRDD = keysRDD.getSet
66
87
```
67
88
68
- In the example we can see how to write to Redis Cluster .
89
+ In the example we can see how to write to Redis Server .
69
90
```
70
91
scala> import import com.redislabs.provider.redis._
71
92
scala> val keysRDD = sc.fromRedisKeyPattern(("127.0.0.1", 7000), "*", 5)
0 commit comments