code: private void createHdfsFilesystem(Configuration conf) throws Exception {
      // Inits HDFS file system object
      mFileSystem = FileSystem.get(URI.create(conf.get("fs.defaultFS")), conf);
      mOutputFilePath = new Path("./MapReduceOutputFile");
      if (mFileSystem.exists(mOutputFilePath)) {
        mFileSystem.delete(mOutputFilePath, true);
      }
    }
docs: Creates the HDFS filesystem to store output files.
  
  @param conf Hadoop configuration