Skip to content

Conjure is a tool for generating good sample data.

Notifications You must be signed in to change notification settings

bhalsey/d8a-conjure

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conjure

Conjure is a data generator.  You'd use Conjure any time you need to generate a lot of test data.  It can generate piles of data on disk, or emit to kafka queues as a realtime firehose simulator.

Building
Conjure is built with maven, so the standard
mvn clean install
will get you a self contained artifact in target/d8a-conjure-*.jar

Configure
To use Conjure, you first need to create a template to show Conjure what your data looks like.  The template is a simple DSL that tries to be as close to the raw data as possible.  See the Template page for more details.  If you just want to fire it up and see what it can do, you can use one from the examples directory.  They're numbered and commented in an attempt at a tutorial path of sorts.

Run
The Conjurer will generate data using your template at the rate you specify.  To fire up the conjurer run:
bin/conjure examples/01-fixed-data.txt
That will run the generator for the simple-template.txt template, conjuring up data at 10 lines per second.
You can also specify the rate:
bin/conjure -rate 100 examples/01-fixed-data.txt
Will generate at 100 lines per second.
See the Conjurer page for more options.

Using kafka:
bin/conjure -out kafka -zk localhost:2181 -rate 1 -topic sensei-cloudalytics examples/99-cloudalytics.json

(need to install kafka jar to mvn)
mvn install:install-file -Dfile=kafka-0.7.2.jar -DgroupId=kafka -DartifactId=core-kafka -Dversion=0.7.2 -Dpackaging=jar


About

Conjure is a tool for generating good sample data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.2%
  • Other 0.8%