building index using hadoop