Code Monkey home page Code Monkey logo

trck's Introduction

Gitter Travis CI Coverage Status

TrailDB

TrailDB is an efficient tool for storing and querying series of events. This repository contains the core C library and the tdb command line tool.

Learn more at traildb.io.

Quick start

For detailed installation instructions, see Getting Started guide.

Installing binaries

On OSX, TrailDB is available through homebrew:

$ brew install traildb

Linux binaries are not available yet.

Compiling and installing from source

Install Dependencies

$ apt-get install libarchive-dev libjudy-dev pkg-config

For RPM-based distros:

$ yum install judy-devel libarchive-devel pkg-config

For OSX:

$ brew install traildb/judy/judy libarchive pkg-config

For FreeBSD:

$ sudo pkg install python libarchive Judy pkgconf gcc

Note that your systems package manager may have too old of libjudy. You may also require a patch if you are using gcc 4.9.

Build TrailDB

$ ./waf configure
$ ./waf install

Alternatively you may use autotools

$ ./autogen.sh
$ ./configure
$ make
$ make install

Run Tests

$ ./waf test

trck's People

Contributors

appascoe avatar badmutex avatar oavdeev avatar rcjmurillo avatar yixu-adroll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

trck's Issues

Ubuntu 16.04 needs `libgoogle-perftools-dev`

With Ubuntu 16.04, the tcmalloc-minimal4 package doesn't provide a version of tcmalloc that satisfies trck. However, the version of tcmalloc installed via the libgoogle-perftools-dev does.

Thus, trck may need to be updated to be able to use the version specified in the install instructions OR the perftools package should be referenced in the install instructions.

Can't seem to make work the simplest query

I've tried the following basic query:

main ->
    receive
        campaign_id = "1234" -> yield $counter
        * -> repeat
$ ./bin/trck query.tr data.tdb
Compiling query.tr
Produced binary in matcher-traildb in 0.53 seconds with gcc[no openmp]
no openmp support, using single thread
Opening traildb data.tdb
Opening traildb took 0 seconds
done processing traildb data.tdb,31s wallclock, 0 states 297522 match calls 0 windows applied to 297522 cookies
Merging thread results took 0
finalizing states took 0
Generating JSON output
{
"$counter":0}

I'm quite sure that the filter works:

$ tdb dump --filter='campaign_id=1234' -i data.tdb | wc -l
     436

I'm using the following:

  • OSX
  • Python 2.7 with ply installed
  • traildb installed from brew
  • judy 1.0.5
  • trck manually compiled

What am I doing wrong?

Add Travis CI support

Would be nice to have Travis CI setup to help ensure the code isn't broken when new PRs are submitted.

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.