title: How to run HDFS file system command via Spark?
body: <p>I can run this command for HDFS:</p>
  
  <pre><code>hadoop fs -ls /user/hive/warehouse/databasename.db/tablename
  </code></pre>
  
  <p>How to write command in Spark to show all files under specific folder in HDFS?</p>
  
  <p>Thanks.</p>