Just resized the print message length
Added the code to integrate with hdfs system