Skip to content

Parse Krux data feed files and import into a Pilosa DB

License

Notifications You must be signed in to change notification settings

theatlantic/go-pensieve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pensieve

This is an example project to show the feasibility of calculating Krux segment overlap with Pilosa.

Setup

Run these setup commands first:

> brew install pilosa golang python
> go get github.com/pilosa/go-pilosa
> git clone git@github.com:theatlantic/go-pensieve.git && cd go-pensieve
> go build pensieve.go
> pip install git+ssh://git@github.com/theatlantic/python-pilosa.git@fix-top-n

In a separate window, run the Pilosa server:

> pilosa server

Make sure all of the krux output files (all .gz parts) are in a directory (say, ./files). Then, create the index and import all of the files:

> curl localhost:10101/index/segmentation -X POST
> ./pensieve -dir ./files

Calculate Overlaps

> ./getintersections <kruxid> <kruxid> [<kruxid>, ...]

About

Parse Krux data feed files and import into a Pilosa DB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published