Skip to content
This repository has been archived by the owner on Nov 22, 2018. It is now read-only.

RedisLabs/spark-redis-blockstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

spark-redis-blockstore

Apache spack off heap cache block manager over redis

Configuration

See the following SparkConf settings for getting OFF_HEAP caching to work with redis:

conf = new SparkConf().
  set("spark.externalBlockStore.blockManager", "org.apache.spark.storage.RedisBlockManager").
  set("spark.redisBlockStore.url", "redis://localhost:6379").
  set("spark.redisBlockStore.keyPrefix", "spark")

Details

This OFF_HEAP block manager enables caching RDD's in an external redis server. Data is cached in simple redis string values. Once set up you can persist your RDD's in redis like this:

myRdd.persist(StorageLevel.OFF_HEAP)

Tested against Spark v1.4.1 (make sure apache/spark#6702 is applied)

About

Apache spack off heap cache block manager over redis - see https://github.com/RedisLabs/spark-redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages