change inputformat from TextInputFormat to FileInputFormat