title: get the client from pyspark
body: <p>I want to retrieve a list of file. I saw a post sayong that these commands would do the job:</p>
  
  <pre><code>from hdfs import Config
  client = Config().get_client('dev')
  client.list('/*')
  </code></pre>
  
  <p>But actually, execution fails:</p>
  
  <pre><code>---------------------------------------------------------------------------
  HdfsError                                 Traceback (most recent call last)
  &lt;ipython-input-308-ab40dc16879a&gt; in &lt;module&gt;()
  ----&gt; 1 client = Config().get_client('dev')
  
  /opt/cloudera/extras/anaconda3/lib/python3.5/site-packages/hdfs/config.py in get_client(self, alias)
      117           break
      118       else:
  --&gt; 119         raise HdfsError('Alias %r not found in %r.', alias, self.path)
      120     return self._clients[alias]
      121 
  
  HdfsError: Alias 'dev' not found in '/home/sbenet/.hdfscli.cfg'.
  </code></pre>
  
  <p>As you can see, it is trying to access the file <code>/home/sbenet/.hdfscli.cfg</code> which does not exists. </p>
  
  <p>If I want to use this method to retrieve the list of files, I need to fix this .hdfscli.cfg file issue, or to use another method with <code>sc</code> maybe. </p>