def _create_file(self, deployment_dir, file_name, data, do_as=False):
    file_path = self.fs.join(deployment_dir, file_name)
    if do_as:
      self.fs.do_as_user(self.user, self.fs.create, file_path, overwrite=True, permission=0644, data=smart_str(data))
    else:
      self.fs.create(file_path, overwrite=True, permission=0644, data=smart_str(data))
    LOG.debug("Created/Updated %s" % (file_path,))
dataset/ETHPy150Open cloudera/hue/desktop/libs/liboozie/src/liboozie/submission2.py/Submission._create_file/original