test code to get familiar with the hadoop api