creating file system instance every time as call to hdfs is getting stuck