title: Read Hadoop DFS data in a bash script
body: <p>I have a file in the Hadoop DFS at a location say /test/filename.txt.</p>
  
  <p>This file has the data of type:</p>
  
  <pre><code>bool array
  </code></pre>
  
  <p>for example:</p>
  
  <pre><code>true [1, 2, 4, 6]
  </code></pre>
  
  <p>I need to read this file in a bash script and store the boolean value and the list in two separate variables. I am not very familiar with bash but I know the basics.</p>