Common design patterns in hadoop