GithubHelp home page GithubHelp logo

edsm_bq's Introduction

EDSM BigQuery Loader

This project is an attempt at loading galaxy data from Elite Dangerous into Google BigQuery for bulk analysis. And to find Raxxla, of course.

Utilizes the Apache Beam SDK and Google Cloud Dataflow to ensure files can be processed quickly. Benchmarked at <15 minutes for BigQuery ingestion.

Installation instructions

Meant to run on Mac or Linux, untested on Windows. Python 2 due to Apache Beam SDK requirements.

  1. pip install -r requirements.txt
  2. If you encounter GCloud version collisions, 'pip install apache-beam[gcp] google-cloud-storage' should work just as well.
  3. chmod +x beam_parser.py
  4. ./beam_parser.py --help

Usage

This pipeline depends heavily on Google Cloud services. Ensure you are properly authenticated before running.

Download EDSM files

This will download files to /tmp/ on your local machine. Ensure you have enough space to store these files, they're well over 100 GB in total.

./beam_parser.py --download powerplay

Stage EDSM files on Google Cloud Storage

This will stage locally downloaded files onto Google Cloud Storage. If you want to use Google Cloud Dataflow, you will need to do this to ensure the Dataflow runner has access to the file. The Dataflow runner is significantly faster than the Direct runner, so this is highly recommended.

./beam_parser.py --project <project id> --bucket <bucket id> --upload_to_gcs powerplay

Run Google Cloud Dataflow

This will process the files staged on GCS and load them into BigQuery. The destination BigQuery dataset must be created before running this command.

./beam_parser.py --project <project id> --bucket <bucket id> --dataset <dataset id> --runner DataflowRunner --upload_to_bq powerplay

edsm_bq's People

Contributors

mjcastner avatar dependabot[bot] avatar

Stargazers

phaneendra avatar

Watchers

Kostas Georgiou 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.