hadoop porting script