Giter VIP home page Giter VIP logo

seghouse's Introduction

SegHouse

Send Segment event from S3 files to Data Warehouses.

Features

  • Stores Segment events from S3 files to Data Warehouse
  • Supported warehouses
    • ClickHouse
  • Fixes data type issues

Installation

This tool depends on awscli.

  • pip3 install awscli
  • aws configure

Install SegHouse.

  • pip install seghouse

Python version >= 3.7 is required. If installed python version is less than 3.7 then first install python3.7.

  • sudo apt install python3.7
  • sudo apt-get install build-essential libssl-dev libffi-dev python3.7-dev
  • Then install seghouse using python3.7 -m pip install seghouse command.
  • Remember to run all SegHouse commands using python3.7. Example
    python3.7 -m seghouse send ...

Commands Overview

  • Send s3 segment files to warehouse.
    • Command : seghouse send --config-file ~/example-seghouse-config.yml --s3-dir "s3://company/clickstream/example_app/android" --namespace example_app_android
    • The command expects to find json.gz files in the S3 path. All these files will be parsed according to Segment Spec and events will be stored in destination warehouses.
    • The configuration file looks like this.
# Configure the warehouses credentials here.
# The user should have create database, create table and add column permissions.
warehouses:
  - type: clickhouse
    host: clickhouse_host_ip
    port: 9000
    user: clickhouse_user
    password: clickhouse_password

# Specify fields that should be skipped
skip_fields:
  - 'field_to_be_skipped_1'
  - 'field_to_be_skipped_2'

# Specify additional timestamp fields
# A new field will be created by converting timestamp to given timezone
extra_timestamps:
  timestamp_ist: Asia/Kolkata

seghouse's People

Contributors

dinsaw avatar

Watchers

 avatar  avatar  avatar

seghouse's Issues

Add Tests

  • Unit Tests for util modules
  • Possible integration tests with click house on docker image

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.