dlyubimov/HBase-Lattice — Issue #3: command line workflow
Author: dlyubimov
Created: 2011-12-22 18:57:15+00:00
State: open

So i was thinking, ok, our use case is 100% embedded workflow, and so is the example.

However, it would be nice to have a command line workflow that everyone could just try without complex dependencies to install.

Something along the lines of a tutorial like this:

-- update model command

hbl admin --update-model example1.yaml

-- generate compiler script for cube "example1"
hbl compiler --generate-script example1 --preambula example1-preambula.pig -o example1-compiler.pig

-- generate and run script for cube with pig parameter substitution:
hbl compiler --generate-script example1 --preambula example1-preambula.pig --run --param input=hdfs://localhost/tmp/input

-- run hbl query
hbl query -q 'select SUM(sale) from example1 where itemId in ['ABCDEF'] , time in [ [2011/09][GMT-8] ] group by time[year-month]> use.csv

and then plot it with R or something.