/scio

A Scala API for Apache Beam and Google Cloud Dataflow

Primary LanguageScalaApache License 2.0Apache-2.0

Scio

Build Status codecov.io GitHub license Maven Central Join the chat at https://gitter.im/spotify/scio

Ecclesiastical Latin IPA: /ˈʃi.o/, [ˈʃiː.o], [ˈʃi.i̯o]

Verb: I can, know, understand, have knowledge.

Scio is a Scala API for Apache Beam and Google Cloud Dataflow inspired by Apache Spark and Scalding. See the current API documentation for more information.

Scio 0.3.0 and future versions depend on Apache Beam (org.apache.beam) while earlier versions depend on Google Cloud Dataflow SDK (com.google.cloud.dataflow). See this page for a list of breaking changes.

Features

  • Scala API close to that of Spark and Scalding core APIs
  • Unified batch and streaming programming model
  • Fully managed service*
  • Integration with Google Cloud products: Cloud Storage, BigQuery, Pub/Sub, Datastore, Bigtable
  • HDFS, JDBC, TensorFlow TFRecords, Cassandra and Elasticsearch I/O
  • Interactive mode with Scio REPL
  • Type safe BigQuery
  • Integration with Algebird and Breeze
  • Pipeline orchestration with Scala Futures
  • Distributed cache

* provided by Google Cloud Dataflow

Quick Start

The ubiquitous word count example can be run directly with SBT in local mode, using README.md as input.

sbt "scio-examples/run-main com.spotify.scio.examples.WordCount --input=README.md --output=wc"
cat wc/part-00000-of-00001.txt

Documentation

Artifacts

Scio includes the following artifacts:

  • scio-core: core library
  • scio-test: test utilities, add to your project as a "test" dependency
  • scio-bigquery: add-on for BigQuery, included in scio-core but can also be used standalone
  • scio-bigtable: add-on for Bigtable
  • scio-cassandra2: add-on for Cassandra 2.x
  • scio-cassandra3: add-on for Cassandra 3.x
  • scio-elasticsearch2: add-on for Elasticsearch 2.x
  • scio-elasticsearch5: add-on for Elasticsearch 5.x
  • scio-extra: extra utilities for working with collections, Breeze, etc.
  • scio-hdfs: add-on for HDFS IO
  • scio-jdbc: add-on for JDBC IO
  • scio-tensorflow: add-on for TensorFlow TFRecords IO and prediction

License

Copyright 2016 Spotify AB.

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0