title: Python write to hdfs file
body: <p>What is the best way to create/write/update a file in <strong>remote</strong> HDFS from local python script? </p>
  
  <p>I am able to list files and directories but writing seems to be a problem.</p>
  
  <p>I have searched <a href="https://pypi.python.org/pypi/hdfs" rel="noreferrer">hdfs</a> and <a href="https://github.com/spotify/snakebite" rel="noreferrer">snakebite</a> but none of them give a clean way to do this.</p>