[hadoop]fixed some bugs and add 2 new scripts with the same fuctionalities