blob: 75f01fa14aea46b8785262571a4c3f48dab58993 [file] [log] [blame] [view]
# 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](http://datafu.incubator.apache.org/blog/2012/01/10/introducing-datafu.html), 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