some hadoop demo codes based on version 1.x