Coder Social home page Coder Social logo

andrii32 / cb2013exporter Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 20 KB

Pet project to denormalize and export information from Crunchbase 2013 Snapshot © 2013 (MySQL) into Elasticsearch.

Scala 100.00%
crunchbase mysql elasticsearch scala docker docker-compose doobie fs2 cats

cb2013exporter's Introduction

Scala learning project

Loads data from crunchabse2013snapshot database into elasticsearch

TODO

  • Handle errors the right way
  • Add Dockerfile
  • Add tests
  • Add CI using Github Actions
  • Load data in a few parallel streams
  • Use Refined types to validate configs
  • Maybe Add other sinks, like MinIO/Mongo

Crunchbase 2013 Snapshot

Crunchbase 2013 Snapshot © 2013

Download archive and unpack it into ./crunchbase2013db folder.

/crunchbase2013db
    /crunchabse_2013_snapchot_20131212

Check if user with UID exists

List users: cat /etc/passwd
Change UID: usermod  -u <NEW_UID> <USERNAME>
Change GID: groupmod -g <NEW_GID> <USERNAME>

Create user with 999 UID:GID if not exists

useradd -u 999 mysql

Change crunchabse_2013_snapshot_20131212 owner

sudo chown -R 999:999 ./crunchbase2013db/crunchbase_2013_snapshot_20131212
sudo chown -R 999:999 ./crunchbase2013db/logs

MYSQL Helpers

Connect to mysql

 mysql -u <USERNAME> -p
 Enter password: <PASSWORD>

Show databases

show databases;

Use database

use <DB_NAME>;

Show tables

show tables;

Describe table:

describe <TABLE_NAME>;

cb2013exporter's People

Contributors

andrii32 avatar

Watchers

 avatar

Forkers

iamgrewal

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.