This document describes using Apache Pig to find the maximum temperature for each city by loading temperature data from a file, grouping the data by city, and generating a new relation with the city name and maximum temperature for each city. The output is dumped and stored in HDFS.