tree: cf62a9831d070e18827089e0ab224438ac7dea6c [path history] [tgz]
  1. generate_temperature_data.rb
  2. quantile.pig
  3. quartiles-approx.tsv
  4. quartiles-diff.tsv
  5. quartiles-exact.tsv
  6. README.md
  7. streaming_quantile.pig
examples/quantile/README.md

Quantile Example

This is an example of using the Quantile and StreamingQuantile UDFs to to compute quantiles for some sample temperature data. It is based on our blog post, which can be read for more details.

Assuming pig 0.12.1 has been downloaded to ~/pig-0.12.1 then the following commands can be used to execute the scripts:

ruby generate_temperature_data.rb

~/pig-0.12.1/bin/pig -x local -f quantile.pig
~/pig-0.12.1/bin/pig -x local -f streaming_quantile.pig