0.0
No commit activity in last 3 years
No release in over 3 years
Google Bigquery storage adapter for akane.gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
~> 3.0.0
~> 1.17.3

Runtime

>= 0.2.0
>= 0
>= 0.19.1
 Project Readme

akane-bigquery - Storage engine for akane.gem that streams tweets to Google BigQuery

Storage plugin gem for akane, allows you to use BigQuery as akane's storage engine.

Installation

Add this line to your application's Gemfile:

gem 'akane-bigquery'

And then execute:

$ bundle

Or install it yourself as:

$ gem install akane-bigquery

Loading past data

If you're using akane's file storage for past data,akane-bigquery prepare allows you to load them into BigQuery.

$ mkdir /tmp/akane-bigquery
$ akane-bigquery prepare /path/to/your/file-storage /tmp/akane-bigquery
$ gsutil -m cp /tmp/akane-bigquery/* gs://YOUR_BUCKET/
$ bq load --source_format=NEWLINE_DELIMITED_JSON YOUR_DATASET_ID.tweets "$(gsutil ls gs://YOUR_BUCKET/ | ruby -e 'ARGF.readlines.map(&:chomp).reject(&:empty?).join(",").display')"

Usage

TODO: Write usage instructions here

Contributing

  1. Fork it ( https://github.com/sorah/akane-bigquery/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request