public virtual void Configure(JobConf conf) { try { FileSystem fs = FileSystem.Get(conf); OutputStream os = fs.Create(FileOutputFormat.GetPathForCustomFile(conf, "test")); os.Write(1); os.Close(); } catch (IOException ex) { throw new RuntimeException(ex); } }