title: Errors in hadoop fs -cat command while writing output of text delimited table into local unix
body: <p>I have very huge amount of data stored in a text delimited table whose <code>DDL</code> I created through <code>Impala</code>, I have written it with data in <code>Hive</code> and I want to get it to <code>local file system</code> in <code>Unix</code> in a single file.
  I have multiple files in <code>HDFS</code> table location path, this is the command I used:</p>
  <p><code>hadoop fs -cat '&lt;tablelocationinHDFS&gt;/*' &gt; /unixlocalpathandfilename.csv </code></p>
  <p>I'm getting 2 errors:</p>
  <ol>
  <li><code>cat: is a directory error</code><br />
  Because there is one <em>impala_insert_staging</em> directory inside it, how do I avoid this error?</li>
  <li><code>cat: Unable to write to output stream</code></li>
  </ol>
  <p>Or Should I be getting data into Local using <code>get</code> command or <code>getmerge</code> command into a single file?<br />
  How do I avoid the above errors and have a successful run of command.</p>