Giter Site home page Giter Site logo

gvq8ehsi1exybju2 / spark-timeseries Goto Github PK

View Code? Open in Web Editor NEW

This project forked from redislabs/spark-timeseries

0.0 1.0 0.0 1.38 MB

A library for financial and time series calculations on Apache Spark

License: Apache License 2.0

Makefile 1.65% Python 10.46% Scala 87.89%

spark-timeseries's Introduction

Build Status

spark-timeseries

A Scala / Python library for interacting with time series data on Apache Spark.

This fork extends Cloudera's spark-timeseries library with:

  • RedisTimeSeriesRDD that uses Redis' Sorted Sets as data source
  • Utility for generating sample dataset files - com.redislabs.provider.util.GenerateWorkdayTestData
  • Import tool that loads time series files to Redis - com.redislabs.provider.util.ImportTimeSeriesData
  • A test suite that compares execution times of common queries using different caching strategies can be found at src/main/scala/com/run/Main.scala

Note: The redis extension is only implemented in the Scala library at the moment.

Time series storage in Redis

Each time series in the dataset is stored as a Redis Sorted Set. The Sorted Set's key name is the name of the time series. The set's members contain the sampled values and scores are set to the respective timestamp. Filters on keys, column names and date ranges are pushed down to Redis via the RedisTimeSeriesRDD for processing the data close to where it is stored and reduce traffic between Spark's workers and the storage. The RedisTimeSeriesRDD can be transformed to a TimeSeriesRDD to provide its full functionality.

spark-timeseries's People

Contributors

sryza avatar josepablocam avatar sunheehnus avatar cdalzell avatar simonouellette35 avatar dvirsky avatar itamarhaber avatar srowen avatar

Watchers

gVQ8EHSI1Exybju2 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.