title: Write on HDFS using Python
body: <p>I am trying to write on HDFS from Python.
  Right now, I am using <a href="https://hdfscli.readthedocs.io/en/latest/quickstart.html" rel="nofollow">https://hdfscli.readthedocs.io/en/latest/quickstart.html</a>
  but for large file I get back:</p>
  
  <pre><code>    File "/home/edge7/venv-dev/local/lib/python2.7/site-packages/hdfs/client.py", line 400, in write
      consumer(data)
    File "/home/edge7/venv-dev/local/lib/python2.7/site-packages/hdfs/client.py", line 394, in consumer
      auth=False,
    File "/home/edge7/venv-dev/local/lib/python2.7/site-packages/hdfs/client.py", line 179, in _request
      **kwargs
    File "/home/edge7/venv-dev/local/lib/python2.7/site-packages/requests/sessions.py", line 465, in request
      resp = self.send(prep, **send_kwargs)
    File "/home/edge7/venv-dev/local/lib/python2.7/site-packages/requests/sessions.py", line 573, in send
      r = adapter.send(request, **kwargs)
    File "/home/edge7/venv-dev/local/lib/python2.7/site-packages/requests/adapters.py", line 415, in send
      raise ConnectionError(err, request=request)
  requests.exceptions.ConnectionError: ('Connection aborted.', gaierror(-2, 'Name or service not known'))
  </code></pre>
  
  <p>My code for writing is pretty simple:</p>
  
  <pre><code>client = InsecureClient('http://xxxxxxx.co:50070', user='hdfs')
  client.write("/tmp/a",stringToWrite)
  </code></pre>
  
  <p>Anyone can suggest a decent package to write on HDFS?
  Cheers</p>